@graphysdk/react-renderer 1.9.0-beta.1790233123402 → 1.9.0-beta.1790263076123

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.
@@ -1,2 +0,0 @@
1
- require('./use-target-boundary.css');var Oa=Object.create,qe=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Na=Object.getOwnPropertyNames,Fa=Object.getPrototypeOf,Ga=Object.prototype.hasOwnProperty,Ha=(e,t)=>{let r={};for(var n in e)qe(r,n,{get:e[n],enumerable:!0});return t||qe(r,Symbol.toStringTag,{value:"Module"}),r},Da=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Na(t),a=0,i=o.length,c;a<i;a++)c=o[a],!Ga.call(e,c)&&c!==r&&qe(e,c,{get:(l=>t[l]).bind(null,c),enumerable:!(n=La(t,c))||n.enumerable});return e},It=(e,t,r)=>(r=e!=null?Oa(Fa(e)):{},Da(t||!e||!e.__esModule?qe(r,"default",{value:e,enumerable:!0}):r,e));const y=require("./theme.contract.css-DKDKSByt.cjs");let u=require("@graphysdk/viz-engine"),v=require("react"),s=require("react/jsx-runtime"),xe=require("zustand"),E=require("motion/react"),Wa=require("d3-interpolate-path"),Y=require("zustand/react/shallow"),Ot=require("@vanilla-extract/dynamic"),Lt=require("zustand/vanilla"),Zr=require("react-dom"),W=require("clsx");W=It(W,1);let jt=require("lodash-es/merge");jt=It(jt,1);let Va=require("react-intl"),X=require("@floating-ui/react-dom"),Ua=require("color2k");typeof window<"u"&&(window.__GRAPHY_SDK__??={},window.__GRAPHY_SDK__.reactRenderer="1.9.0-beta.1790233123402");function _r(e){for(const t of e)(t.severity==="error"?console.error:console.warn)(`[graphy] ${t.code}: ${t.message}`,t)}var Nt=(0,v.createContext)(null),D=()=>{const e=(0,v.useContext)(Nt);if(!e)throw new Error("useGraph* hooks must be used inside a <GraphProvider>");return e},O=e=>{const{store:t}=D();return(0,xe.useStore)(t,r=>e(r.scene))},Ft=()=>D().styleResolver,N=e=>Ee()(e),B=()=>{const e=Ft(),t=O(r=>r.chrome);return e.readers({chrome:t})},$r=e=>{const t=Ee(),r=O(n=>n.layers).find(n=>n.id===e);return r===void 0?null:t(r)},Ka=()=>{const e=Ee(),t=O(r=>r.layers);return(0,v.useMemo)(()=>r=>{const n=(0,u.readAnchoredObservation)(t,r);if(n!==null)return(0,u.readGeomColor)({geom:e},n.layer,n.observation)},[t,e])},Ya=e=>{const t=Ee(),r=O(n=>n.layers);return(0,v.useMemo)(()=>n=>{const o=(0,u.readAnchoredObservation)(r,n);if(o===null)return{};const a=(0,u.resolveSwatchGeomPaint)(t,o.layer,o.observation,{width:e,height:e});return{color:(0,u.readGeomColor)({geom:t},o.layer,o.observation),alpha:a.alpha,cornerRadius:a.cornerRadiusPx}},[r,t,e])},Ee=()=>{const e=Ft();return O(t=>e.readers(t).geom)},Qa={centerX:0,centerY:0,radius:1},De=e=>{const t=Math.min(e.width,e.height);return{centerX:(e.width-t)/2+t/2,centerY:(e.height-t)/2+t/2,radius:t/2}},K=(e,t,r=Qa)=>{const n=(0,u.polarToUnit)(e,t);return{x:r.centerX+n.x*r.radius,y:r.centerY-n.y*r.radius}},me=(e,t)=>({x:(0,u.toViewBoxX)(e),y:(0,u.toViewBoxY)(t)}),J=(e,t)=>{const r=K(e,t);return{x:(r.x+1)/2,y:(r.y+1)/2}},za=2,Xa=.7,he=({hit:e,project:t=me})=>{const r=$r(e.layerId);if(!e.anchored)return null;const n=r?.get("fill",e.observation)??u.DEFAULT_GEOM_COLOR,o=((0,u.getAlpha)(e.observation)??1)*Xa,a=(r?.get("size",e.observation)??u.DEFAULT_POINT_SIZE_PX)/2,i=r?.get("stroke",e.observation,"hovered")??u.DEFAULT_HOVER_AFFORDANCE_COLOR,c=t(e.x,e.y);return(0,s.jsx)("circle",{cx:(0,u.toPercent)(c.x),cy:(0,u.toPercent)(c.y),r:a,fill:n,opacity:o,stroke:i,strokeWidth:za,"data-testid":"companion-point"})};var yr=10**2,F=e=>Math.round(e*yr)/yr,qa=e=>e.map(({x:t,y:r})=>`M${F(t)},${F(r)}h0`).join(""),Ja=(e,t,r)=>{const n=r.axis==="x",o=n?e.y:e.x,a=n?e.x:e.y,i=n?e.height:e.width,c=n?e.width:e.height,l=Math.max(Math.min(r.from,r.to),a),d=Math.min(Math.max(r.from,r.to),a+c);if(d-l<=0||i<=0)return"";const h=Math.max(0,Math.min(t,i/2)),g=Math.max(0,Math.min(t,c/2)),m=a+g,f=a+c-g,p=o+i,A=n?0:1,x=(k,T)=>{const[L,$]=n?[T,k]:[k,T];return`${F(L)},${F($)}`},[S,b]=(n?[g,h]:[h,g]).map(F),j=(k,T)=>`A${S},${b} 0 0 ${A} ${x(k,T)}`,w=k=>{if(h<=0||g<=0)return 0;const T=k<m?m-k:k>f?k-f:0,L=Math.min(1,T/g);return h*(1-Math.sqrt(1-L*L))},P=(k,T)=>h>0&&g>0&&(Math.max(k,T)<=m||Math.min(k,T)>=f),C=[l,...new Set([m,f].filter(k=>k>l&&k<d)),d],M=[`M${x(o+w(l),l)}`,`L${x(p-w(l),l)}`];for(let k=1;k<C.length;k++){const T=C[k-1]??l,L=C[k]??d;M.push(P(T,L)?j(p-w(L),L):`L${x(p,L)}`)}M.push(`L${x(o+w(d),d)}`);for(let k=C.length-1;k>0;k--){const T=C[k]??d,L=C[k-1]??l;M.push(P(T,L)?j(o+w(L),L):`L${x(o,L)}`)}return`${M.join("")}Z`},en=(e,t,r)=>{const n=e.digits?.()??null,o=n===null?null:10**n,a=l=>o===null?l:Math.round(l*o)/o,i=(l,d)=>tn(a(l),a(d),r);let c="";return e.context({moveTo:(l,d)=>{c+=`M${i(l,d)}`},lineTo:(l,d)=>{c+=`L${i(l,d)}`},bezierCurveTo:(l,d,h,g,m,f)=>{c+=`C${i(l,d)},${i(h,g)},${i(m,f)}`},closePath:()=>{c+="Z"}}),e(t),e.context(null),c},wt=(e,t)=>{let r="";for(let n=0;n<e.length;n++){const o=e[n];o!==void 0&&(r+=`${n===0?"M":"L"}${tn(o.x,o.y,t)}`)}return r===""?"":`${r}Z`},Je=(e,t)=>({x:e.x*t.width,y:e.y*t.height}),tn=(e,t,{origin:r,scaleX:n,scaleY:o})=>`${F(r.x+e*n)},${F(r.y+t*o)}`,Za=({layer:e,coordSystem:t,panelRect:r,shouldAnimateTransitions:n})=>{const{areaGenerator:o}=(0,u.createAreaPathGenerators)(t,e.params),a={origin:{x:0,y:0},scaleX:r.width,scaleY:r.height};let i="";const c=[];e.data.groupBy(u.GROUP_VARIABLES.group).forEach(d=>{const h=(0,u.prepareAreaObservations)([...d],e.params.missingValues),[g]=h;if(g!==void 0){if(h.length===1){const m=_a(g,t,r);m!==null&&c.push(m);return}i+=en(o,h,a)}});const l=i===""?[]:[{kind:"region",pathData:i,shouldAnimateTransitions:n}];return c.length>0&&l.push({kind:"dots",centers:c,size:u.DEFAULT_POINT_SIZE_PX}),l},_a=(e,t,r)=>{if(t.mainAxis==="y"){const a=(0,u.getY)(e),i=(0,u.getXMax)(e)??(0,u.getX)(e);return a===null||i===null?null:Je(me(i,a),r)}const n=(0,u.getX)(e),o=(0,u.getYMax)(e)??(0,u.getY)(e);return n===null||o===null?null:Je(me(n,o),r)},Gt=e=>e==="none"?"none":`${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`,rn=e=>{if(e!=="none")return`drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`},nn=e=>{const t=[...e.brightness===void 0?[]:[`brightness(${e.brightness})`],...e.contrast===void 0?[]:[`contrast(${e.contrast})`],...e.saturation===void 0?[]:[`saturate(${e.saturation})`],...e.blur===void 0?[]:[`blur(${e.blur}px)`],...e.shadow===void 0?[]:[rn(e.shadow)??""]].filter(r=>r!=="");return t.length===0?void 0:t.join(" ")},H=e=>{const t=nn(e),r=e.blendMode==="normal"?void 0:e.blendMode;if(!(t===void 0&&r===void 0))return{...t===void 0?{}:{filter:t},...r===void 0?{}:{mixBlendMode:r}}},_="_1d8mpa10",Z={type:"spring",stiffness:500,damping:60,mass:1},$a={duration:0},Ht=e=>e?Z:$a,Ze=(e,t,r)=>{const n=(0,E.useMotionValue)(e),o=(0,v.useRef)(r);return(0,v.useEffect)(()=>{const a=r!==void 0&&r===o.current;if(o.current=r,n.get()===e)return;if(a){n.set(e);return}const i=(0,Wa.interpolatePath)(n.get(),e),c=(0,E.animate)(0,1,{...t,onUpdate:l=>n.set(i(l))});return()=>c.stop()},[t,e,r,n]),n},on=({shouldAnimateTransitions:e,...t})=>e?(0,s.jsx)(ts,{...t}):(0,s.jsx)(es,{...t}),es=({fillPath:e,linePath:t,fill:r,fillOpacity:n,stroke:o,strokeWidth:a,strokeOpacity:i,strokeDasharray:c,lineCap:l,lineJoin:d,opacity:h})=>(0,s.jsxs)("g",{opacity:h,children:[(0,s.jsx)("path",{d:e,fill:r,fillOpacity:n,stroke:"none"}),(0,s.jsx)("path",{d:t,fill:"none",stroke:o,strokeWidth:a,strokeOpacity:i,strokeDasharray:c,strokeLinecap:l,strokeLinejoin:d,vectorEffect:"non-scaling-stroke"})]}),ts=({fillPath:e,linePath:t,fill:r,fillOpacity:n,stroke:o,strokeWidth:a,strokeOpacity:i,strokeDasharray:c,lineCap:l,lineJoin:d,opacity:h})=>{const g=Ze(e,Z),m=Ze(t,Z);return(0,s.jsxs)("g",{opacity:h,children:[(0,s.jsx)(E.motion.path,{d:g,fill:r,fillOpacity:n,stroke:"none"}),(0,s.jsx)(E.motion.path,{d:m,fill:"none",stroke:o,strokeWidth:a,strokeOpacity:i,strokeDasharray:c,strokeLinecap:l,strokeLinejoin:d,vectorEffect:"non-scaling-stroke"})]})},Dt=(e,t)=>{const r=(t!==void 0?e.delayByKey[t]:void 0)??0;return{duration:e.durationSeconds,ease:e.growAxis==="angle"?"circOut":"backOut",delay:r}},rs=e=>({duration:e.durationSeconds,ease:"easeOut"}),ns=e=>({duration:e.durationSeconds,ease:"easeOut"}),os=e=>as(e)+e.durationSeconds,as=e=>{switch(e.type){case"grow":return Object.values(e.delayByKey).reduce((t,r)=>Math.max(t,r),0);case"wipe":case"fade":return 0}},Ar=1.1,br=1.5,an=({intro:e,children:t})=>{const r=(0,v.useId)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("clipPath",{id:r,children:(0,s.jsx)(E.motion.rect,{...ss(e.axis),transition:rs(e)})}),(0,s.jsx)("g",{clipPath:`url(#${r})`,children:t})]})},ss=e=>e==="x"?{x:-.05,y:-.25,height:br,initial:{width:0},animate:{width:Ar}}:{x:-.25,y:-.05,width:br,initial:{height:0},animate:{height:Ar}},is=(0,v.memo)(function({layer:t,coordSystem:r,shouldAnimateTransitions:n,intro:o}){const a=o?.type==="wipe"?o:null,{lineGenerator:i,areaGenerator:c}=(0,v.useMemo)(()=>(0,u.createAreaPathGenerators)(r,t.params),[t.params,r]),l=N(t),d=(0,v.useMemo)(()=>{const h=(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id),g=[];return t.data.groupBy(u.GROUP_VARIABLES.group).forEach(m=>{const f=(0,u.prepareAreaObservations)([...m],t.params.missingValues),p=c(f),A=i(f);if(!p||!A)return;const x=f[0];if(!x)return;const S=l.get("fill",x),b=l.get("stroke",x)??S,j=l.get("strokeWidth",x),w=(0,u.toStrokeDasharray)(l.get("dashArray",x),l.get("strokeWidth",x)),P=l.get("lineCap",x),C=l.get("lineJoin",x);g.push({key:h(x),areaPath:p,linePath:A,fill:S,stroke:b,fillOpacity:l.get("fillAlpha",x)*l.get("alpha",x),strokeWidth:j,strokeOpacity:l.get("strokeAlpha",x)*l.get("alpha",x),strokeDasharray:w,lineCap:P,lineJoin:C})}),g},[c,i,t.data,t.id,t.mapping,t.params,l]).map(h=>(0,s.jsx)(ls,{areaPath:h.areaPath,linePath:h.linePath,fill:h.fill,stroke:h.stroke,fillOpacity:h.fillOpacity,strokeWidth:h.strokeWidth,strokeOpacity:h.strokeOpacity,strokeDasharray:h.strokeDasharray,lineCap:h.lineCap,lineJoin:h.lineJoin,shouldAnimateTransitions:n},h.key));return(0,s.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"area",style:H((0,u.readGeomEffects)(l,t.data.getFirst()??void 0)),className:_,children:a?(0,s.jsx)(an,{intro:a,children:d}):d})}),ls=({areaPath:e,linePath:t,fill:r,stroke:n,fillOpacity:o,strokeWidth:a,strokeOpacity:i,strokeDasharray:c,lineCap:l,lineJoin:d,shouldAnimateTransitions:h})=>(0,s.jsx)(on,{fillPath:e,linePath:t,fill:r,fillOpacity:o,stroke:n,strokeWidth:a,strokeOpacity:i,strokeDasharray:c,lineCap:l,lineJoin:d,shouldAnimateTransitions:h}),sn=1,cs=.4,us=.2,ds=1,hs=.5,gs=2.25,Re=({hit:e,project:t=me,...r})=>{const n=$r(e.layerId);if(!e.anchored)return null;const o=n?.get("fill",e.observation)??u.DEFAULT_GEOM_COLOR,a=(0,u.getAlpha)(e.observation)??1,i=n?.get("stroke",e.observation,"hovered")??u.DEFAULT_HOVER_AFFORDANCE_COLOR,c=t(e.x,e.y),l=(0,u.toPercent)(c.x),d=(0,u.toPercent)(c.y),h=vs(e.observation,n),{ringRadius:g,ringWidth:m}=fs(h),f=n?H((0,u.readGeomEffects)(n,e.observation,"hovered")):void 0;return(0,s.jsxs)("g",{...r,style:f,children:[(0,s.jsx)("circle",{cx:l,cy:d,r:g,fill:"none",stroke:i,strokeWidth:m}),(0,s.jsx)("circle",{cx:l,cy:d,r:h,fill:o,opacity:a,stroke:i,strokeWidth:sn})]})},vs=(e,t)=>{const r=t?.get("size",e),n=(0,u.getSize)(e)??null;return n!==null?(r??n)/gs:(r??12)/2},fs=e=>{const t=Math.max(ds,e*cs),r=Math.max(hs,e*us);return{ringRadius:e+sn/2+r+t/2,ringWidth:t}},ms=({layer:e,coordSystem:t,primary:r,companions:n})=>{const o=N(e),a=(0,u.getGroup)(r.observation),i=(0,v.useMemo)(()=>(0,u.prepareAreaObservations)([...e.data.filter(u.GROUP_VARIABLES.group,"eq",a)],e.params.missingValues),[e.data,e.params.missingValues,a]),{areaPath:c,linePath:l}=(0,v.useMemo)(()=>{const{lineGenerator:b,areaGenerator:j}=(0,u.createAreaPathGenerators)(t,e.params);return{areaPath:j(i)??"",linePath:b(i)??""}},[t,e.params,i]);if(!c||!l)return null;const d=o.get("fill",r.observation,"hovered"),h=o.get("stroke",r.observation,"hovered")??d,g=o.get("alpha",r.observation,"hovered"),m=o.get("fillAlpha",r.observation,"hovered")*g,f=o.get("strokeAlpha",r.observation,"hovered")*g,p=o.get("strokeWidth",r.observation,"hovered"),A=(0,u.toStrokeDasharray)(o.get("dashArray",r.observation,"hovered"),p),x=o.get("lineCap",r.observation,"hovered"),S=o.get("lineJoin",r.observation,"hovered");return(0,s.jsxs)("g",{"data-testid":"hovered-area",children:[(0,s.jsxs)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"area",style:H((0,u.readGeomEffects)(o,r.observation,"hovered")),className:_,children:[(0,s.jsx)("path",{d:c,fill:d,fillOpacity:m,stroke:"none","data-testid":"hovered-area-fill"}),(0,s.jsx)("path",{d:l,fill:"none",stroke:h,strokeWidth:p,strokeOpacity:f,strokeDasharray:A,strokeLinecap:x,strokeLinejoin:S,vectorEffect:"non-scaling-stroke","data-testid":"hovered-area-edge"})]}),n.map(b=>(0,s.jsx)(he,{hit:b},`companion-${b.layerId}-${b.pointIndex}`)),(0,s.jsx)(Re,{hit:r,"data-testid":"hovered-area-point"})]})},ps={geom:"area",coord:"cartesian",swatchShape:"area",guideMode:"crosshair",render:({layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n})=>(0,s.jsx)(is,{layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n}),renderHover:({layer:e,coordSystem:t,primary:r,group:n,related:o})=>(0,s.jsx)(ms,{layer:e,coordSystem:t,primary:r,companions:[...n,...o]}),renderHoverCompanions:({related:e})=>(0,s.jsx)(s.Fragment,{children:e.map(t=>(0,s.jsx)(he,{hit:t},`companion-${t.layerId}-${t.pointIndex}`))}),getEditOutlineShapes:Za,getOverlayAnchor:({observation:e,coordSystem:t})=>{if(t.mainAxis==="x"){const o=(0,u.getX)(e),a=(0,u.getYMax)(e)??(0,u.getY)(e);return o===null||a===null?null:{x:o,y:a}}const r=(0,u.getY)(e),n=(0,u.getXMax)(e)??(0,u.getX)(e);return r===null||n===null?null:{x:n,y:r}}},ln=e=>{const t=new WeakMap;return(r,...n)=>{const o=t.get(r);if(o!==void 0&&o.args.every((i,c)=>i===n[c]))return o.result;const a=e(r,...n);return t.set(r,{args:n,result:a}),a}},nt=(e,t)=>({stroke:e.get("stroke",t),strokeWidth:e.get("strokeWidth",t),cornerRadius:e.get("cornerRadius",t),strokeAlpha:e.get("strokeAlpha",t)}),cn=(e,t,r,n)=>{const o=new Map;for(const i of e.data){const c=(0,u.getBarRectBounds)(t,i);if(!c)continue;const l=(0,u.buildColumnKey)(t,c),d=n(i,c),h=o.get(l);h===void 0?o.set(l,{firstObservation:i,members:[d]}):h.members.push(d)}const a=new Map;for(const[i,{firstObservation:c,members:l}]of o)a.set(i,{style:nt(r,c),bounds:(0,u.getBoundingRect)(l),members:l});return a},Wt=(e,t,r)=>{const n=new Map;for(const[o,{style:a,bounds:i}]of cn(e,t,r,As))n.set(o,{style:a,bounds:i});return n},un=(e,t,r,n)=>{const o=(0,u.getBarRectBounds)(t,n);return o?e.get((0,u.buildColumnKey)(t,o))??{style:nt(r,n),bounds:o}:null},pe=(e,t)=>({x:e.x*t.width,y:e.y*t.height,width:e.width*t.width,height:e.height*t.height}),Pt=(e,t)=>({x:e.x-t,y:e.y-t,width:Math.max(0,e.width+t*2),height:Math.max(0,e.height+t*2)}),ie=(e,t)=>{const r=F(e.x),n=F(e.y),o=F(e.x+e.width),a=F(e.y+e.height),i=F(Math.max(0,Math.min(t,e.width/2))),c=F(Math.max(0,Math.min(t,e.height/2)));if(i<=0||c<=0)return`M${r},${n}H${o}V${a}H${r}Z`;const l=`A${i},${c} 0 0 1 `,[d,h,g,m]=[`${r}`,`${n}`,`${o}`,`${a}`],f=`${F(r+i)}`,p=`${F(o-i)}`,A=`${F(n+c)}`,x=`${F(a-c)}`;return`M${f},${h}H${p}${l}${g},${A}V${x}${l}${p},${m}H${f}${l}${d},${x}V${A}${l}${f},${h}Z`},xs=({observation:e,mainAxis:t,styleReaders:r,column:n,panelRect:o})=>{const a=(0,v.useId)(),i=(0,v.useId)(),c=(0,u.getBarRectBounds)(t,e);if(!c)return null;const l=pe(c,o),d=pe(n.bounds,o),{stroke:h,strokeWidth:g,cornerRadius:m,strokeAlpha:f}=n.style,p=(0,u.resolveBarBorderRadiusPx)({cornerRadius:m,mainAxis:t,bounds:d}),A=ie(l,0),x=ie(d,p),S=r.get("fill",e),b=r.get("alpha",e)*r.get("fillAlpha",e),j=(0,u.resolveBarBorderTreatment)(g);return(0,s.jsxs)("g",{clipPath:`url(#${a})`,children:[(0,s.jsx)("clipPath",{id:a,children:(0,s.jsx)("path",{d:A})}),(0,s.jsx)("clipPath",{id:i,children:(0,s.jsx)("path",{d:x})}),(0,s.jsxs)("g",{clipPath:`url(#${i})`,children:[(0,s.jsx)("path",{d:A,fill:S,opacity:b,"data-testid":"highlight-bar-segment"}),h!==void 0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:A,fill:"none",stroke:h,strokeWidth:j.separatorWidth,opacity:b,"data-testid":"highlight-bar-segment-border"}),(0,s.jsx)("path",{d:x,fill:"none",stroke:h,strokeWidth:j.outlineWidth,opacity:f})]})]})]})},ys=({layer:e,sourceLayer:t,coordSystem:r,panelRect:n})=>{const o=N(t),a=(0,v.useMemo)(()=>Wt(t,r.mainAxis,o),[t,r.mainAxis,o]),i=(0,u.createStableKeyGenerator)(e.data,e.mapping,e.id),c=[];for(const l of e.data){const d=un(a,r.mainAxis,o,l);d!==null&&c.push((0,s.jsx)(xs,{observation:l,mainAxis:r.mainAxis,styleReaders:o,column:d,panelRect:n},i(l)))}return c},As=(e,t)=>t,bs=ln(Wt),Ss=({layer:e,sourceLayer:t,coordSystem:r,panelRect:n,styleReaders:o,shouldAnimateTransitions:a})=>{const{mainAxis:i}=r,c=bs(t,i,o),l=js(e.data);let d="";for(let h=0;h<e.data.size();h++){const g=(0,u.buildBarRectBounds)(i,{xMin:l.xMin[h]??null,xMax:l.xMax[h]??null,yMin:l.yMin[h]??null,yMax:l.yMax?.[h]??null,y:l.y?.[h]??null});if(g===null)continue;const m=c.get((0,u.buildColumnKey)(i,g));if(m===void 0)continue;const f=pe(m.bounds,n),p=pe(g,n),A=(0,u.resolveBarBorderRadiusPx)({cornerRadius:m.style.cornerRadius,mainAxis:i,bounds:f});d+=ws(p,f)?ie(f,A):Ja(f,A,i==="x"?{axis:"y",from:p.y,to:p.y+p.height}:{axis:"x",from:p.x,to:p.x+p.width})}return d===""?[]:[{kind:"region",pathData:d,shouldAnimateTransitions:a}]},js=e=>{const t=r=>e.hasVariable(r)?e.getValues(r,{type:"numeric"}):null;return{xMin:e.getValues(u.POSITION_VARIABLES.xMin,{type:"numeric"}),xMax:e.getValues(u.POSITION_VARIABLES.xMax,{type:"numeric"}),yMin:e.getValues(u.POSITION_VARIABLES.yMin,{type:"numeric"}),yMax:t(u.POSITION_VARIABLES.yMax),y:t(u.POSITION_VARIABLES.y)}},ws=(e,t)=>Math.abs(e.x-t.x)<.5&&Math.abs(e.y-t.y)<.5&&Math.abs(e.width-t.width)<.5&&Math.abs(e.height-t.height)<.5,kt=(e,t,r)=>{const n=r===void 0?e.activeIntro:r,o=(0,v.useRef)(n?Dt(n,t):null),a=(0,v.useRef)(e.shouldAnimateTransitions);return a.current=e.shouldAnimateTransitions,(0,v.useCallback)(()=>{const i=o.current;return o.current=null,i??Ht(a.current)},[])},ot=(e,t)=>{const r=(0,v.useRef)(!0);(0,v.useEffect)(()=>{r.current=!1},[]);const n=r.current;return(0,v.useMemo)(()=>({isAnimated:t||e!==null,isLayerEntrance:n,activeIntro:n?e:null,shouldAnimateTransitions:t}),[e,t,n])},dn=(e,t)=>t.growAxis==="x"?{x:t.baseline,y:e.y,width:0,height:e.height}:{x:e.x,y:t.baseline,width:e.width,height:0},Ps=(0,v.memo)(function({layer:t,coordSystem:r,shouldAnimateTransitions:n,intro:o}){const a=(0,v.useId)(),i=N(t),c=ot(o?.type==="grow"&&(o.growAxis==="x"||o.growAxis==="y")?o:null,n);return(0,s.jsx)(s.Fragment,{children:(0,v.useMemo)(()=>{const l=(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id);return[...cn(t,r.mainAxis,i,(d,h)=>({key:l(d),...h,fill:i.get("fill",d),opacity:i.get("alpha",d)*i.get("fillAlpha",d),effects:H((0,u.readGeomEffects)(i,d))})).values()].map(({members:d,style:h,bounds:g},m)=>{const f=h.stroke===void 0?void 0:(0,u.resolveBarBorderTreatment)(h.strokeWidth);return{key:d[0]?.key??String(m),id:`${a}${m}`,bars:d,effects:Cs(d),...g,radii:Bs({cornerRadius:h.cornerRadius,mainAxis:r.mainAxis,bounds:g}),stroke:h.stroke,outlineOpacity:h.strokeAlpha,clippedStrokeWidth:f?.outlineWidth,separatorStrokeWidth:f?.separatorWidth}})},[a,r.mainAxis,t,i]).map(l=>{const d=l.effects.scope==="column"?l.effects.style:void 0;if(l.bars.length===1&&l.stroke===void 0){const[h]=l.bars;if(!h)return null;const{key:g,effects:m,...f}=h,p=(0,s.jsx)(Vt,{...f,...l.radii,animation:c,introKey:g},g);return d===void 0?p:(0,s.jsx)("g",{style:d,children:p},g)}return(0,s.jsx)("g",{style:d,children:c.isAnimated?(0,s.jsx)(Es,{column:l,animation:c}):(0,s.jsx)(ks,{column:l,animation:c})},l.key)})})}),ks=({column:e,animation:t})=>{const{id:r,bars:n,radii:o,stroke:a,outlineOpacity:i,clippedStrokeWidth:c}=e,l=a!==void 0,d=(0,s.jsx)("clipPath",{id:r,children:(0,s.jsx)(Sr,{bounds:e,radii:o})});if(n.length===1){const[h]=n;if(!h)return null;const{key:g,effects:m,...f}=h;return(0,s.jsxs)(s.Fragment,{children:[d,(0,s.jsx)("g",{clipPath:`url(#${r})`,children:(0,s.jsx)(Vt,{...f,...o,stroke:a,strokeWidth:c,animation:t},g)})]})}return(0,s.jsxs)(s.Fragment,{children:[d,hn(e,t,l&&(0,s.jsx)(Sr,{bounds:e,radii:o,fill:"none",stroke:a,strokeWidth:c,opacity:i}))]})},Es=({column:e,animation:t})=>{const{id:r,bars:n,radii:o,stroke:a,outlineOpacity:i,clippedStrokeWidth:c}=e,l=a!==void 0,d=Ms(e,t,n[0]?.key),h={style:{transformBox:"view-box",x:d.x,y:d.y,width:d.width,height:d.height},rx:o.rx,ry:o.ry},g=(0,s.jsx)("clipPath",{id:r,children:(0,s.jsx)(E.motion.rect,{...h})});if(n.length===1){const[m]=n;return(0,s.jsxs)(s.Fragment,{children:[g,(0,s.jsx)("g",{clipPath:`url(#${r})`,children:(0,s.jsx)(E.motion.rect,{...h,fill:m?.fill,opacity:m?.opacity,stroke:a,strokeWidth:c})})]})}return(0,s.jsxs)(s.Fragment,{children:[g,hn(e,t,l&&(0,s.jsx)(E.motion.rect,{...h,fill:"none",stroke:a,strokeWidth:c,opacity:i}))]})},hn=(e,t,r)=>{const{id:n,bars:o,stroke:a,separatorStrokeWidth:i,effects:c}=e,l=`url(#${n})`;return(0,s.jsxs)(s.Fragment,{children:[o.map(({key:d,effects:h,...g})=>(0,s.jsx)("g",{style:c.scope==="bar"?h:void 0,children:(0,s.jsx)("g",{clipPath:l,children:(0,s.jsx)(Vt,{...g,stroke:a,strokeWidth:i,animation:t,introKey:d})})},d)),r&&(0,s.jsx)("g",{clipPath:l,children:r})]})},Rs=(e,t)=>e===t||e!==void 0&&t!==void 0&&e.filter===t.filter&&e.mixBlendMode===t.mixBlendMode,Cs=e=>{const[t,...r]=e,n=t?.effects;return r.every(o=>Rs(o.effects,n))?{scope:"column",style:n}:{scope:"bar"}},Vt=({animation:e,introKey:t,rx:r,ry:n,stroke:o,strokeWidth:a,...i})=>{const{isAnimated:c,activeIntro:l,shouldAnimateTransitions:d}=e;if(c){const h=l?dn(i,l):null;return(0,s.jsx)(E.motion.rect,{initial:h?{x:(0,u.toPercent)(h.x),y:(0,u.toPercent)(h.y),width:(0,u.toPercent)(h.width),height:(0,u.toPercent)(h.height),opacity:i.opacity}:!1,style:{transformBox:"view-box"},transition:l?Dt(l,t):Ht(d),fill:i.fill,opacity:i.opacity,rx:r,ry:n,stroke:o,strokeWidth:a,animate:{x:(0,u.toPercent)(i.x),y:(0,u.toPercent)(i.y),width:(0,u.toPercent)(i.width),height:(0,u.toPercent)(i.height),opacity:i.opacity}})}return(0,s.jsx)("rect",{style:{transformBox:"view-box"},x:(0,u.toPercent)(i.x),y:(0,u.toPercent)(i.y),width:(0,u.toPercent)(i.width),height:(0,u.toPercent)(i.height),fill:i.fill,opacity:i.opacity,rx:r,ry:n,stroke:o,strokeWidth:a})},Sr=({bounds:e,radii:t,fill:r,stroke:n,strokeWidth:o,opacity:a})=>(0,s.jsx)("rect",{x:(0,u.toPercent)(e.x),y:(0,u.toPercent)(e.y),width:(0,u.toPercent)(e.width),height:(0,u.toPercent)(e.height),rx:t.rx,ry:t.ry,fill:r,stroke:n,strokeWidth:o,opacity:a}),Ms=(e,t,r)=>{const n=t.activeIntro?dn(e,t.activeIntro):e,o=(0,E.useMotionValue)(n.x),a=(0,E.useMotionValue)(n.y),i=(0,E.useMotionValue)(n.width),c=(0,E.useMotionValue)(n.height),l=kt(t,r);return(0,v.useEffect)(()=>{const d=l(),h=[(0,E.animate)(o,e.x,d),(0,E.animate)(a,e.y,d),(0,E.animate)(i,e.width,d),(0,E.animate)(c,e.height,d)];return()=>{for(const g of h)g.stop()}},[o,a,i,c,e.x,e.y,e.width,e.height,l]),{x:(0,E.useTransform)(o,u.toPercent),y:(0,E.useTransform)(a,u.toPercent),width:(0,E.useTransform)(i,u.toPercent),height:(0,E.useTransform)(c,u.toPercent)}};function Bs(e){const t=(0,u.resolveBarCornerRadiiPx)(e);if(e.cornerRadius!=="full")return t;const r={};return t.rx!==void 0&&(r.rx=(0,u.toPercent)(t.rx)),t.ry!==void 0&&(r.ry=(0,u.toPercent)(t.ry)),r}var mt=3,Ts=({layer:e,coordSystem:t,primary:r,panelRect:n})=>{const o=N(e),a=(0,v.useId)(),i=(0,v.useId)(),c=(0,v.useId)(),l=(0,v.useMemo)(()=>Wt(e,t.mainAxis,o),[e,t.mainAxis,o]),d=(0,u.getBarRectBounds)(t.mainAxis,r.observation),h=un(l,t.mainAxis,o,r.observation);if(!d||h===null)return null;const g=pe(d,n),m=pe(h.bounds,n),{stroke:f,strokeWidth:p,cornerRadius:A,strokeAlpha:x}=h.style,S=(0,u.resolveBarBorderRadiusPx)({cornerRadius:A,mainAxis:t.mainAxis,bounds:m}),b=ie(g,0),j=ie(m,S),w=ie(Pt(g,mt),0),P=ie(Pt(m,mt),S>0?S+mt:0),C=o.get("fill",r.observation,"hovered"),M=o.get("alpha",r.observation,"hovered")*o.get("fillAlpha",r.observation,"hovered"),k=o.get("stroke",r.observation,"hovered"),T=(0,u.resolveBarBorderTreatment)(p);return(0,s.jsxs)("g",{"data-testid":"hovered-bar",style:H((0,u.readGeomEffects)(o,r.observation,"hovered")),children:[(0,s.jsx)("clipPath",{id:a,children:(0,s.jsx)("path",{d:P})}),(0,s.jsx)("clipPath",{id:i,children:(0,s.jsx)("path",{d:b})}),(0,s.jsx)("clipPath",{id:c,children:(0,s.jsx)("path",{d:j})}),(0,s.jsx)("g",{clipPath:`url(#${a})`,children:(0,s.jsx)("path",{d:w,fill:k,"data-testid":"hovered-bar-border"})}),(0,s.jsx)("g",{clipPath:`url(#${i})`,children:(0,s.jsxs)("g",{clipPath:`url(#${c})`,children:[(0,s.jsx)("path",{d:b,fill:C,opacity:M,"data-testid":"hovered-bar-fill"}),f!==void 0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:b,fill:"none",stroke:f,strokeWidth:T.separatorWidth,opacity:M,"data-testid":"hovered-bar-inner-border"}),(0,s.jsx)("path",{d:j,fill:"none",stroke:f,strokeWidth:T.outlineWidth,opacity:x})]})]})})]})},Is={geom:"bar",coord:"cartesian",swatchShape:"square",guideMode:"band",render:({layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n})=>(0,s.jsx)(Ps,{layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n}),renderHighlight:({layer:e,sourceLayer:t,coordSystem:r,panelRect:n})=>(0,s.jsx)(ys,{layer:e,sourceLayer:t,coordSystem:r,panelRect:n}),renderHover:({layer:e,coordSystem:t,primary:r,panelRect:n})=>(0,s.jsx)(Ts,{layer:e,coordSystem:t,primary:r,panelRect:n}),renderHoverCompanions:()=>null,getEditOutlineShapes:Ss},Os=({layer:e,panelRect:t,styleReaders:r,shouldAnimateTransitions:n})=>{const o=(0,u.createLinePathGenerator)(e.params),a={origin:{x:0,y:0},scaleX:t.width,scaleY:t.height},i=[],c=[];return e.data.groupBy(u.GROUP_VARIABLES.group).forEach(l=>{const d=(0,u.prepareLineObservations)([...l],e.params.missingValues),[h]=d;if(h===void 0)return;if(d.length===1){const m=Ls(h,t);m!==null&&c.push(m);return}const g=en(o,d,a);g!==""&&i.push({kind:"stroke",key:String((0,u.getGroup)(h)),pathData:g,width:r.get("strokeWidth",h),shouldAnimateTransitions:n})}),c.length>0&&i.push({kind:"dots",centers:c,size:u.DEFAULT_POINT_SIZE_PX}),i},Ls=(e,t)=>{const r=(0,u.getX)(e),n=(0,u.getY)(e);return r===null||n===null?null:Je(me(r,n),t)},Ns=(0,v.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const o=n?.type==="wipe"?n:null,a=(0,v.useMemo)(()=>(0,u.createLinePathGenerator)(t.params),[t.params]),i=(0,v.useMemo)(()=>(0,u.createLineFillAreaGenerator)(t.params),[t.params]),c=N(t),l=(0,v.useMemo)(()=>{const d=(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id),h=[];return t.data.groupBy(u.GROUP_VARIABLES.group).forEach(g=>{const m=(0,u.prepareLineObservations)([...g],t.params.missingValues),f=a(m);if(!f)return;const p=m[0];if(!p)return;const A=c.get("fillAlpha",p),x=A===void 0?void 0:i(m)??void 0,S=c.get("stroke",p),b=c.get("fill",p)??S,j=c.get("strokeWidth",p),w=(0,u.toStrokeDasharray)(c.get("dashArray",p),c.get("strokeWidth",p)),P=c.get("lineCap",p),C=c.get("lineJoin",p);h.push({key:d(p),pathData:f,fillPath:x,fillAlpha:A,stroke:S,fill:b,opacity:c.get("alpha",p),strokeAlpha:c.get("strokeAlpha",p),strokeWidth:j,strokeDasharray:w,lineCap:P,lineJoin:C})}),h},[a,i,t.data,t.id,t.mapping,t.params,c]).map(d=>(0,s.jsx)(Fs,{pathData:d.pathData,fillPath:d.fillPath,fillAlpha:d.fillAlpha,stroke:d.stroke,fill:d.fill,strokeWidth:d.strokeWidth,opacity:d.opacity,strokeAlpha:d.strokeAlpha,strokeDasharray:d.strokeDasharray,lineCap:d.lineCap,lineJoin:d.lineJoin,shouldAnimateTransitions:r},d.key));return(0,s.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"line",style:H((0,u.readGeomEffects)(c,t.data.getFirst()??void 0)),className:_,children:o?(0,s.jsx)(an,{intro:o,children:l}):l})}),Fs=({pathData:e,fillPath:t,fillAlpha:r,stroke:n,fill:o,strokeWidth:a,opacity:i,strokeAlpha:c,strokeDasharray:l,lineCap:d,lineJoin:h,shouldAnimateTransitions:g})=>t!==void 0&&r!==void 0?(0,s.jsx)(Gs,{fillPath:t,fillAlpha:r,fill:o,linePath:e,stroke:n,strokeWidth:a,opacity:i,strokeAlpha:c,strokeDasharray:l,lineCap:d,lineJoin:h,shouldAnimateTransitions:g}):g?(0,s.jsx)(Hs,{pathData:e,stroke:n,strokeWidth:a,opacity:i,strokeAlpha:c,strokeDasharray:l,lineCap:d,lineJoin:h}):(0,s.jsx)("path",{d:e,fill:"none",stroke:n,strokeWidth:a,opacity:i,strokeOpacity:c,strokeDasharray:l,strokeLinecap:d,strokeLinejoin:h,vectorEffect:"non-scaling-stroke"}),Gs=({fillPath:e,fillAlpha:t,linePath:r,stroke:n,fill:o,strokeWidth:a,opacity:i,strokeAlpha:c,strokeDasharray:l,lineCap:d,lineJoin:h,shouldAnimateTransitions:g})=>{const m=`line_fill_gradient_${(0,v.useId)()}`;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:m,gradientTransform:"rotate(90 0.5 0.5)",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:o}),(0,s.jsx)("stop",{offset:"70%",stopColor:o,stopOpacity:0}),(0,s.jsx)("stop",{offset:"100%",stopColor:o,stopOpacity:0})]})}),(0,s.jsx)(on,{fillPath:e,linePath:r,fill:`url(#${m})`,fillOpacity:t,stroke:n,strokeWidth:a,strokeOpacity:c,opacity:i,strokeDasharray:l,lineCap:d,lineJoin:h,shouldAnimateTransitions:g})]})},Hs=({pathData:e,stroke:t,strokeWidth:r,opacity:n,strokeAlpha:o,strokeDasharray:a,lineCap:i,lineJoin:c})=>{const l=Ze(e,Z);return(0,s.jsx)(E.motion.path,{d:l,fill:"none",stroke:t,strokeWidth:r,opacity:n,strokeOpacity:o,strokeDasharray:a,strokeLinecap:i,strokeLinejoin:c,vectorEffect:"non-scaling-stroke"})},Ds=({layer:e,primary:t,companions:r})=>{const n=N(e),o=(0,u.getGroup)(t.observation),a=(0,v.useMemo)(()=>(0,u.prepareLineObservations)([...e.data.filter(u.GROUP_VARIABLES.group,"eq",o)],e.params.missingValues),[e.data,e.params.missingValues,o]),i=(0,v.useMemo)(()=>(0,u.createLinePathGenerator)(e.params)(a),[e.params,a]);if(!i)return null;const c=n.get("stroke",t.observation,"hovered"),l=n.get("alpha",t.observation,"hovered"),d=n.get("strokeAlpha",t.observation,"hovered"),h=n.get("strokeWidth",t.observation,"hovered"),g=(0,u.toStrokeDasharray)(n.get("dashArray",t.observation,"hovered"),h),m=n.get("lineCap",t.observation,"hovered"),f=n.get("lineJoin",t.observation,"hovered");return(0,s.jsxs)("g",{"data-testid":"hovered-line",children:[(0,s.jsx)("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"line",style:H((0,u.readGeomEffects)(n,t.observation,"hovered")),className:_,children:(0,s.jsx)("path",{d:i,fill:"none",stroke:c,strokeWidth:h,opacity:l,strokeOpacity:d,strokeDasharray:g,strokeLinecap:m,strokeLinejoin:f,vectorEffect:"non-scaling-stroke","data-testid":"hovered-line-path"})}),r.map(p=>(0,s.jsx)(he,{hit:p},`companion-${p.layerId}-${p.pointIndex}`)),(0,s.jsx)(Re,{hit:t,"data-testid":"hovered-line-point"})]})},Ws={geom:"line",coord:"cartesian",swatchShape:"line",guideMode:"crosshair",render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,s.jsx)(Ns,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({layer:e,primary:t,group:r,related:n})=>(0,s.jsx)(Ds,{layer:e,primary:t,companions:[...r,...n]}),renderHoverCompanions:({related:e})=>(0,s.jsx)(s.Fragment,{children:e.map(t=>(0,s.jsx)(he,{hit:t},`companion-${t.layerId}-${t.pointIndex}`))}),getEditOutlineShapes:Os,getOverlayAnchor:({observation:e})=>{const t=(0,u.getX)(e),r=(0,u.getY)(e);return t===null||r===null?null:{x:t,y:r}}},gn=({observation:e,project:t,styleReaders:r,animation:n,introKey:o})=>{const a=vn(e,t);if(a===null)return null;const i=(0,u.toPercent)(a.x),c=(0,u.toPercent)(a.y),l=r.get("size",e)/2,d=r.get("fill",e),h=r.get("alpha",e),g=r.get("fillAlpha",e),m=r.get("strokeAlpha",e),f=r.get("stroke",e),p=r.get("strokeWidth",e),A=H((0,u.readGeomEffects)(r,e)),{isAnimated:x,activeIntro:S,shouldAnimateTransitions:b}=n;return x?(0,s.jsx)(E.motion.circle,{initial:S?{cx:i,cy:c,r:0,opacity:0}:!1,transition:S?Dt(S,o):Ht(b),fill:d,fillOpacity:g,stroke:f,strokeOpacity:m,strokeWidth:p,style:A,animate:{cx:i,cy:c,r:l,opacity:h}}):(0,s.jsx)("circle",{cx:i,cy:c,r:l,fill:d,fillOpacity:g,opacity:h,stroke:f,strokeOpacity:m,strokeWidth:p,style:A})},vn=(e,t)=>{const r=(0,u.getX)(e),n=(0,u.getY)(e);return r===null||n===null?null:t(r,n)},fn=({layer:e,panelRect:t,styleReaders:r,project:n})=>{const o=new Map;for(const a of e.data){const i=vn(a,n);if(i===null)continue;const c=r.get("size",a)+r.get("strokeWidth",a),l=o.get(c)??[];l.push(Je(i,t)),o.set(c,l)}return[...o].map(([a,i])=>({kind:"dots",centers:i,size:a}))},Vs=(0,v.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const o=N(t),a=ot(n?.type==="grow"&&n.growAxis==="size"?n:null,r);return(0,v.useMemo)(()=>{const i=a.activeIntro?(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id):null,c=[];let l=0;for(const d of t.data)c.push((0,s.jsx)(gn,{observation:d,project:me,styleReaders:o,animation:a,introKey:i?.(d)},String(l++)));return c},[t.data,t.mapping,t.id,o,a])}),jr=({primary:e,companions:t})=>{const r=(0,s.jsxs)(s.Fragment,{children:[t.map(n=>(0,s.jsx)(he,{hit:n},`companion-${n.layerId}-${n.pointIndex}`)),e?(0,s.jsx)(Re,{hit:e}):null]});return e?(0,s.jsx)("g",{"data-testid":"hovered-point",children:r}):r},Us={geom:"point",coord:"cartesian",swatchShape:"circle",render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,s.jsx)(Vs,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({primary:e,group:t,related:r})=>(0,s.jsx)(jr,{primary:e,companions:[...t,...r]}),renderHoverCompanions:({related:e})=>(0,s.jsx)(jr,{companions:e}),getEditOutlineShapes:e=>fn({...e,project:me}),getOverlayAnchor:({observation:e})=>{const t=(0,u.getX)(e),r=(0,u.getY)(e);return t===null||r===null?null:{x:t,y:r}}},We=`"Stack Sans Text", 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
2
- 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,Ks=We,Le={regular:u.NAMED_WEIGHTS.regular,medium:u.NAMED_WEIGHTS.medium,semibold:u.NAMED_WEIGHTS.semiBold,bold:u.NAMED_WEIGHTS.bold,extraBold:u.NAMED_WEIGHTS.extraBold},ee={xxs:1,xs:1.1,sm:1.2,md:1.4,lg:1.6,xl:2,editorBody:1.5,headingSm:1.8,headingMd:2.2,headingLg:2.8},q={xxs:1,xs:1,sm:1.3,md:1.43,lg:1,xl:1,editorBody:1.47,headingSm:1.25,headingMd:1.41,headingLg:1.29},te=e=>`${e}em`,mn={textScale:"1",fontFamily:We,fontFamilyHeading:Ks,fontWeightRegular:Le.regular.toString(),fontWeightMedium:Le.medium.toString(),fontWeightSemibold:Le.semibold.toString(),fontWeightBold:Le.bold.toString(),fontWeightExtraBold:Le.extraBold.toString(),fontSizeXxs:te(ee.xxs),fontSizeXs:te(ee.xs),fontSizeSm:te(ee.sm),fontSizeMd:te(ee.md),fontSizeLg:te(ee.lg),fontSizeXl:te(ee.xl),fontLineHeightXxs:q.xxs.toString(),fontLineHeightXs:q.xs.toString(),fontLineHeightSm:q.sm.toString(),fontLineHeightMd:q.md.toString(),fontLineHeightLg:q.lg.toString(),fontLineHeightXl:q.xl.toString()},pn={fontSizeEditorBody:te(ee.editorBody),fontSizeHeadingSm:te(ee.headingSm),fontSizeHeadingMd:te(ee.headingMd),fontSizeHeadingLg:te(ee.headingLg),fontLineHeightEditorBody:q.editorBody.toString(),fontLineHeightHeadingSm:q.headingSm.toString(),fontLineHeightHeadingMd:q.headingMd.toString(),fontLineHeightHeadingLg:q.headingLg.toString()},I=(e,t,r,n=y.vars.fontFamily)=>`${e} ${t}/${r} ${n}`,xn={fontUITooltip:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontUITooltipSecondary:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontButton:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontInput:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontInputLabel:I(y.vars.fontWeightMedium,y.vars.fontSizeXxs,y.vars.fontLineHeightXxs),fontSelectLabel:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontSelectDescription:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontColorSelectLabel:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontMenuTitle:I(y.vars.fontWeightSemibold,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontMenuGroupTitle:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontMenuItemLabel:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontMenuItemLabelSecondary:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontErrorBoundaryTitle:I(y.vars.fontWeightSemibold,y.vars.fontSizeHeadingSm,y.vars.fontLineHeightHeadingSm),fontErrorBoundaryMessage:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontTableCell:I(y.vars.fontWeightMedium,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontTableHeaderCell:I(y.vars.fontWeightSemibold,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontSourceLabel:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontSourceLink:I(y.vars.fontWeightRegular,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontTextEditorH1:I(y.vars.fontWeightBold,y.vars.fontSizeHeadingLg,y.vars.fontLineHeightHeadingLg,y.vars.fontFamilyHeading),fontTextEditorH2:I(y.vars.fontWeightBold,y.vars.fontSizeHeadingMd,y.vars.fontLineHeightHeadingMd,y.vars.fontFamilyHeading),fontTextEditorH3:I(y.vars.fontWeightSemibold,y.vars.fontSizeHeadingSm,y.vars.fontLineHeightHeadingSm,y.vars.fontFamilyHeading),fontTextEditorH6:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontTextEditorBody:I(y.vars.fontWeightMedium,y.vars.fontSizeEditorBody,y.vars.fontLineHeightEditorBody),fontTextEditorLink:I(y.vars.fontWeightRegular,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontHighlightModeTitle:I(y.vars.fontWeightBold,y.vars.fontSizeMd,y.vars.fontLineHeightMd),fontHighlightModeSubtitle:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontEditorControlLabel:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontEditorControlValue:I(y.vars.fontWeightMedium,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontEditorSectionTitle:I(y.vars.fontWeightSemibold,y.vars.fontSizeSm,y.vars.fontLineHeightSm),fontEditorCaption:I(y.vars.fontWeightMedium,y.vars.fontSizeXxs,y.vars.fontLineHeightXxs)},Ys=q.sm,Qs=(e,t)=>({familyDefault:pt(t)??pt(e.fontFamily)??pt(We)??""}),pt=e=>e===void 0||e.includes("var(")?null:e.replace(/\s+/g," ").trim(),V=(e,t)=>`color-mix(in srgb, transparent, ${e} ${t*100}%)`,yn=(e,t)=>`hsl(from ${e} h s calc(l * ${1-t}))`,zs=(e,t)=>`hsl(from ${e} h s calc(l * ${1+t}))`,Xs=e=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e),qs=e=>e.length===0?!1:typeof CSS<"u"&&typeof CSS.supports=="function"?CSS.supports("color",e):/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e),xt=e=>`${e}px`,An={tooltipRowGap:"4px",editorControlHeight:xt(32),legendSwatchGap:xt(8),headlineRowGap:xt(2)},je={panelOverlay:5,textToolbar:10,textToolbarTooltip:20,textToolbarPopover:30,legendPopover:40,editorOverlay:900,editorOverlayPopover:950,tooltip:1e3},bn={elevationXs:"0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",elevationSm:"0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",elevationMd:"0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",elevationLg:"0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"},Sn={radiiXs:"4px",radiiSm:"6px",radiiMd:"8px",radiiLg:"12px"},jn={zIndexToolbar:`${je.textToolbar}`,zIndexToolbarTooltip:`${je.textToolbarTooltip}`,zIndexToolbarPopover:`${je.textToolbarPopover}`,zIndexEditorPopover:`${je.editorOverlayPopover}`},Js=8,be=e=>`${Js*e}px`,wn={spaceXxs:be(.25),spaceXs:be(.5),spaceSm:be(.75),spaceMd:be(1),spaceLg:be(1.5),spaceXl:be(2)},Zs={transparent:"transparent",white:"#FFFFFF",black:"#000000",gray100:"#000000",gray95:"#0D0D0D",gray90:"#1A1A1A",gray85:"#1F1F1F",gray80:"#2A2A2A",gray75:"#2e2e2e",gray70:"#353535",gray60:"#494949",gray50:"#6F6F6F",gray0:"#FFFFFF",red60:"#CB3333",red50:"#F93939",amber70:"#F48135",amber50:"#FEAE47",amber40:"#FFC849",amber30:"#ffd061",green60:"#0AC600",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE",grayGradient80:"linear-gradient(to top, #222429, #31353f)"},_s={textPrimary:y.vars.gray0,textSecondary:V(y.vars.textPrimary,.8),textDisabled:V(y.vars.textPrimary,.5),iconPrimary:"currentColor",iconSecondary:V(y.vars.textPrimary,.6),iconStickerBackground:y.vars.gray70,border100:y.vars.gray0,border50:V(y.vars.gray0,.5),border10:V(y.vars.gray0,.1),brand:y.vars.purple50,success:y.vars.green50,warning:y.vars.amber50,alert:y.vars.red50,sunkenBackground:y.vars.gray100,defaultBackground:y.vars.gray90,raisedBackground:y.vars.gray80,overlayBackground:y.vars.gray90,overlayBorderGradient:y.vars.grayGradient80},$s={graphBackground:y.vars.gray90,legendFocusOutlineColor:y.vars.border50,toolbarBackgroundColor:y.vars.overlayBackground,toolbarButtonBackgroundColor:"transparent",toolbarButtonBackgroundColorHovered:y.vars.gray80,toolbarButtonBackgroundColorSelected:y.vars.gray60,toolbarSeparatorColor:y.vars.gray60,annotationOutlineColor:y.vars.blue60,editMenuTriggerIconColor:y.vars.white},ei={canvasDefault:"#FFFFFF",canvasBlue:"#60a5fa",canvasCyan:"#22d3ee",canvasGreen:"#34d399",canvasYellow:"#FFC800",canvasOrange:"#fb923c",canvasRed:"#f87171",canvasPink:"#F979D9",canvasPurple:"#a78bfa",canvasGray:"#a8a29e",canvasInverse:"#000000"},ti={...Zs,..._s,...bn,...Sn,...wn,...jn,...$s,...ei,...An,...mn,...pn,...xn},ri={transparent:"transparent",white:"#FFFFFF",black:"#000000",gray100:"#FFFFFF",gray95:"#FCFCFC",gray90:"#FAFAFA",gray85:"#F5F5F5",gray80:"#F0F0F0",gray75:"#E8E8E8",gray70:"#E5E5E5",gray60:"#CCCCCC",gray50:"#C4C4C4",gray0:"#1D2129",red60:"#E14B49",red50:"#F93939",amber70:"#FFBA8C",amber50:"#FFC849",amber40:"#FEAE47",amber30:"#E7A816",green60:"#06B299",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE",grayGradient80:"linear-gradient(to top, #F0F0F1, #F9F9FF)"},ni={textPrimary:y.vars.black,textSecondary:V(y.vars.textPrimary,.6),textDisabled:V(y.vars.textPrimary,.5),iconPrimary:"currentColor",iconSecondary:V(y.vars.textPrimary,.6),iconStickerBackground:y.vars.gray100,brand:y.vars.purple50,success:y.vars.green50,warning:y.vars.amber50,alert:y.vars.red50,border100:y.vars.gray0,border50:V(y.vars.gray0,.5),border10:V(y.vars.gray0,.1),sunkenBackground:y.vars.gray90,defaultBackground:y.vars.gray100,raisedBackground:y.vars.gray85,overlayBackground:y.vars.gray100,overlayBorderGradient:y.vars.border10},oi={graphBackground:y.vars.gray100,legendFocusOutlineColor:y.vars.border50,toolbarBackgroundColor:y.vars.overlayBackground,toolbarButtonBackgroundColor:"transparent",toolbarButtonBackgroundColorHovered:y.vars.gray80,toolbarButtonBackgroundColorSelected:y.vars.gray60,toolbarSeparatorColor:y.vars.gray60,annotationOutlineColor:y.vars.blue60,editMenuTriggerIconColor:"#3d414c"},ai={canvasDefault:"#000000",canvasBlue:"#3b82f6",canvasCyan:"#06b6d4",canvasGreen:"#10b981",canvasYellow:"#E5B400",canvasOrange:"#f97316",canvasRed:"#ef4444",canvasPink:"#E845BF",canvasPurple:"#8b5cf6",canvasGray:"#78716c",canvasInverse:"#ffffff"},si={...ri,...ni,...bn,...Sn,...wn,...jn,...oi,...ai,...An,...mn,...pn,...xn},Ut=(e,t={})=>{const r={};for(const[n,o]of Object.entries(t))o!=null&&(r[n]=o);return{...e==="dark"?ti:si,...r}},Pn=(e,t={},r)=>{const n=Ut(e,t);return{legendSwatchGap:wr(n.legendSwatchGap,8),headlineRowGap:wr(n.headlineRowGap,2),fonts:Qs(n,r)}},ii=Object.freeze(Pn("light"));function wr(e,t){const r=e.trim();if(!/^-?\d*\.?\d+(px)?$/.test(r))return t;const n=Number.parseFloat(r);return Number.isFinite(n)?n:t}var kn=(0,v.createContext)(ii),li=({metrics:e,children:t})=>(0,s.jsx)(kn.Provider,{value:e,children:t}),ye=()=>(0,v.useContext)(kn),R=(e,...t)=>(0,v.useMemo)(()=>e(...t),[e,...t]),at=(e,t,r)=>{const n=Ee(),o=O(a=>e===void 0?void 0:(0,u.findLayerById)(a.layers,e));return(0,v.useMemo)(()=>{if(o===void 0)return{};const a=(0,u.readColorGroupObservation)(o,t),i=(0,u.resolveSwatchGeomPaint)(n,o,a,{width:r,height:r});return{alpha:i.alpha,cornerRadius:i.cornerRadiusPx}},[o,n,t,r])},ci=/\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu,En="😀",Rn=class Cn{constructor(){this.emojiCorrections=new Map,this.currentFont="";const t=new OffscreenCanvas(1,1).getContext("2d");if(!t)throw new Error("Failed to create OffscreenCanvas 2D context");this.ctx=t}static async create(){return typeof document<"u"&&"fonts"in document&&await document.fonts.ready,new Cn}measureText(t,r){const n=(0,u.applyTextTransform)(t,r.textTransform),o=(0,u.buildFontString)(r);this.setFont(o);const{width:a,fontBoundingBoxAscent:i,fontBoundingBoxDescent:c}=this.ctx.measureText(n);let l=a+(0,u.computeLetterSpacingWidth)(n,r.letterSpacing);const d=ui(n);if(d>0){const h=this.getEmojiCorrection(o);l-=h*d}return{width:l,height:i+c,ascent:i,descent:c}}setFont(t){this.currentFont!==t&&(this.ctx.font=t,this.currentFont=t)}getEmojiCorrection(t){const r=this.emojiCorrections.get(t);if(r!==void 0)return r;this.setFont(t);const n=this.ctx.measureText(En).width,o=di(t);let a=0;if(o!==null){const i=n-o;a=i>.5?i:0}return this.emojiCorrections.set(t,a),a}},se=null,ui=e=>{const t=e.match(ci);return t?t.length:0},di=e=>{const t=hi();return t?(t.style.font=e,t.getBoundingClientRect().width):null},hi=()=>typeof document>"u"?null:(se||(se=document.createElement("span"),se.style.position="absolute",se.style.visibility="hidden",se.style.whiteSpace="nowrap",se.style.left="-9999px",se.textContent=En,document.body.appendChild(se)),se),Mn=(0,v.createContext)(null),Pr=3e3,Bn=({children:e,measurer:t})=>{const[r,n]=(0,v.useState)(null);(0,v.useEffect)(()=>{if(t!==void 0)return;let a=!1;const i=()=>{a||n(gi())};if(!(typeof document<"u"&&"fonts"in document)){i();return}const c=setTimeout(()=>{a||(console.warn(`[graphy] FONT_READY_TIMEOUT: document.fonts.ready has not settled in ${Pr}ms; painting with the fonts available so far.`),i())},Pr),l=()=>{clearTimeout(c),i()};return document.fonts.ready.then(l,l),document.fonts.addEventListener("loadingdone",l),()=>{a=!0,clearTimeout(c),document.fonts.removeEventListener("loadingdone",l)}},[t]);const o=t??r;return o===null?null:(0,s.jsx)(Mn.Provider,{value:o,children:e})},ce=()=>{const e=(0,v.useContext)(Mn);if(e===null)throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");return e},gi=()=>{try{return new u.CachedTextMeasurer(new Rn)}catch{return new u.CachedTextMeasurer(new u.HeuristicTextMeasurer)}},Tn=(0,v.createContext)(null),vi=Tn.Provider,fi=null,oe=()=>(0,v.useContext)(Tn)??(fi??=qn()),mi=11.7,pi=.5,kr=21.6,xi="0 0 10 18",yi="M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z",Ai="_16vokpr0",bi=(e,t)=>e.mapping.y!==void 0!=(t.mainAxis==="y"),Si=(e,t)=>{const r=(0,u.toPercent)(e?1-t:t);return e?{x1:"0%",y1:r,x2:"100%",y2:r}:{x1:r,y1:"0%",x2:r,y2:"100%"}},ji=(e,t,r,n)=>{const o=(0,u.toStrokeDasharray)(e,t),a={...r===void 0?{}:{strokeLinecap:r},...n===void 0?{}:{strokeLinejoin:n}};return o===void 0?a:{strokeDasharray:o,strokeLinecap:"round",...a,...(e[0]??0)>1?{strokeMiterlimit:16}:{}}},wi=(e,t)=>Qe(e)&&Qe(t)?`${e}: ${t}`:Qe(e)?e:Qe(t)?t:null,Pi=e=>e?14:0,ki=(e,t)=>e*pi-Pi(t)-10,Ei=(e,t,r)=>{const n=e*r,o=-13-n,a=r+13-n-t;return a<o?o:Math.min(Math.max(-t/2,o),a)},Qe=e=>e!=null&&e.trim()!=="",In=Object.freeze({}),Kt=(0,v.createContext)(In),Ri=({slots:e,children:t})=>(0,s.jsx)(Kt.Provider,{value:e??In,children:t});function re(e,t){const r=(0,v.useContext)(Kt)[e];return r===void 0?t:typeof r=="object"&&Mi(r)?r.render:r}function Ci(){const e=(0,v.useContext)(Kt);return{measureAxis:e.AxisTicks?.measure,measureAxisLabel:e.AxisLabel?.measure,measureLegend:e.Legend?.measure,measureHeadline:e.Headline?.measure.measureHeadline,measureHeadlineItemWidths:e.Headline?.measure.measureHeadlineItemWidths}}function Mi(e){return"render"in e&&"measure"in e}var Bi="_2qyyu60",Ti=2,Ii=12,Oi=12,Er=1,Rr=2,Li=4,Ve=e=>(0,s.jsx)(re("Swatch",On),{...e}),On=({shape:e,color:t,lineType:r="solid",width:n=Ii,height:o=Oi,strokeWidth:a=Ti,alpha:i,cornerRadius:c})=>(0,s.jsx)("svg",{className:Bi,width:n,height:o,viewBox:`0 0 ${n} ${o}`,"aria-hidden":!0,"data-testid":"chart-swatch","data-shape":e,children:Ni({shape:e,color:t,lineType:r,width:n,height:o,strokeWidth:a,alpha:i,cornerRadius:c})}),Ni=({shape:e,color:t,lineType:r,width:n,height:o,strokeWidth:a,alpha:i,cornerRadius:c})=>{const l=Fi(r,n);switch(e){case"square":return(0,s.jsx)("rect",{x:1,y:1,width:n-2,height:o-2,rx:c??2,fill:t,opacity:i});case"line":return(0,s.jsx)("line",{x1:l.x1,y1:o/2,x2:l.x2,y2:o/2,stroke:t,strokeWidth:a,strokeLinecap:l.linecap,strokeDasharray:l.dashArray,opacity:i});case"circle":{const d=(Math.min(n,o)-2)/2;return(0,s.jsx)("circle",{cx:n/2,cy:o/2,r:d,fill:t,opacity:i})}case"area":{const d=o/2-1;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{x:1,y:d,width:n-2,height:o-d-1,fill:t,opacity:i??.45}),(0,s.jsx)("line",{x1:l.x1,y1:d,x2:l.x2,y2:d,stroke:t,strokeWidth:a,strokeLinecap:l.linecap,strokeDasharray:l.dashArray})]})}case"slice":return(0,s.jsx)("path",{d:`M 0 ${o} L ${n} ${o} A ${n} ${o} 0 0 0 0 0 Z`,fill:t,opacity:i});default:return e}},Fi=(e,t)=>e==="solid"?{x1:0,x2:t,dashArray:void 0,linecap:"round"}:e==="dashed"?{x1:0,x2:t,dashArray:`${(t-Er*(Rr-1))/Rr} ${Er}`,linecap:"butt"}:{x1:0,x2:t,dashArray:`1 ${t/(Li-1)}`,linecap:"round"},Ce=(e,t=y.vars.fontFamily)=>({fontFamily:e.fontFamily??t,fontSize:e.fontSize,fontWeight:e.fontWeight,...e.fontStyle===void 0?{}:{fontStyle:e.fontStyle},...e.letterSpacing===void 0?{}:{letterSpacing:`${e.letterSpacing}px`},...e.textDecoration===void 0?{}:{textDecoration:e.textDecoration}}),st=e=>Nn(e)?{stroke:e.textOutlineColor,strokeWidth:e.textOutlineWidth*2,paintOrder:"stroke"}:{},Ln=e=>Nn(e)?{WebkitTextStroke:`${e.textOutlineWidth*2}px ${e.textOutlineColor}`,paintOrder:"stroke"}:{},Se=e=>({...Ce(e),lineHeight:e.lineHeight,color:e.textColor,...e.textTransform===void 0?{}:{textTransform:e.textTransform},...Ln(e)}),G=e=>({...Ce(e),lineHeight:e.lineHeight,color:e.textColor,...e.textTransform===void 0?{}:{textTransform:e.textTransform},...Ln(e)}),Gi=(e,t)=>(0,Ot.assignInlineVars)({[e.fontFamily]:t.fontFamily??y.vars.fontFamily,[e.fontSize]:`${t.fontSize}px`,[e.fontWeight]:String(t.fontWeight),[e.lineHeight]:String(t.lineHeight),[e.textColor]:t.textColor}),Nn=e=>e.textOutlineColor!==void 0&&e.textOutlineWidth!==void 0&&e.textOutlineWidth>0,Hi=({labelPosition:e,linePosition:t,color:r,pillWidth:n,pillHeight:o,text:a,shouldAnimateTransitions:i})=>{const c=e==="start",l=c?-13:-(n-13),d=c?l+n-5:l+5-12,h=c?void 0:`rotate(180 ${d+12/2} ${o/2})`,g=c?"0%":"100%",m=(0,u.toPercent)(1-t),f=(0,s.jsxs)("g",{transform:`translate(0, ${-o/2})`,pointerEvents:"none",children:[(0,s.jsx)("rect",{x:l,y:0,width:n,height:o,rx:6,fill:r}),(0,s.jsx)("g",{transform:h,children:(0,s.jsx)("svg",{x:d,y:(o-kr)/2,width:12,height:kr,viewBox:xi,overflow:"visible",children:(0,s.jsx)("path",{d:yi,fill:r})})}),(0,s.jsx)("g",{transform:`translate(${l+5}, ${o/2})`,children:a})]});return i?(0,s.jsx)(E.motion.svg,{initial:!1,transition:Z,x:g,animate:{y:m},overflow:"visible",children:f}):(0,s.jsx)("svg",{x:g,y:m,overflow:"visible",children:f})},Di=({labelPosition:e,linePosition:t,color:r,pillWidth:n,pillHeight:o,panelWidth:a,text:i,shouldAnimateTransitions:c})=>{const l=e==="start",d=l?-13:-(o-13),h=(0,u.toPercent)(t),g=l?"100%":"0%",m=(0,s.jsxs)("g",{transform:`translate(${Ei(t,n,a)}, 0)`,pointerEvents:"none",children:[(0,s.jsx)("rect",{x:0,y:d,width:n,height:o,rx:6,fill:r}),(0,s.jsx)("g",{transform:`translate(5, ${d+o/2})`,children:i})]});return c?(0,s.jsx)(E.motion.svg,{initial:!1,transition:Z,y:g,animate:{x:h},overflow:"visible",children:m}):(0,s.jsx)("svg",{x:h,y:g,overflow:"visible",children:m})},Wi=({label:e,textStyle:t,textWidth:r,labelPosition:n,isHorizontalLine:o,position:a,color:i,textColor:c,symbolShape:l,symbolColor:d,symbolAlpha:h,symbolCornerRadius:g,panelWidth:m,shouldAnimateTransitions:f})=>{const p=l===null?0:14,A=r+p+10,x=Math.max(mi,(0,u.computeLineBoxHeight)(t))+10,S=(0,s.jsxs)(s.Fragment,{children:[l!==null&&d!==null&&(0,s.jsx)("g",{transform:`translate(0, ${-10/2})`,children:(0,s.jsx)(Ve,{shape:l,color:d,surface:"rule-label",width:10,height:10,alpha:h,cornerRadius:g})}),(0,s.jsx)("text",{x:p,textAnchor:"start",dominantBaseline:"central",fill:c,style:Ce(t),...st(t),children:(0,u.applyTextTransform)(e,t.textTransform)})]});return o?(0,s.jsx)(Hi,{labelPosition:n,linePosition:a,color:i,pillWidth:A,pillHeight:x,text:S,shouldAnimateTransitions:f}):(0,s.jsx)(Di,{labelPosition:n,linePosition:a,color:i,pillWidth:A,pillHeight:x,panelWidth:m,text:S,shouldAnimateTransitions:f})},Vi=({strokeWidth:e,dashArray:t,lineCap:r,lineJoin:n,isHorizontalLine:o,position:a,lineColor:i,effects:c,shouldAnimateTransitions:l})=>{const d=Si(o,a),h=ji(t,e,r,n);return l?(0,s.jsx)(E.motion.line,{initial:!1,transition:Z,animate:{x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2},...h,style:c,stroke:i,strokeWidth:e,vectorEffect:"non-scaling-stroke"}):(0,s.jsx)("line",{...d,...h,style:c,stroke:i,strokeWidth:e,vectorEffect:"non-scaling-stroke"})},Ui=(0,v.memo)(function({layer:t,coordSystem:r,formattingLocale:n,shouldAnimateTransitions:o,panelWidth:a}){const i=ce(),c=oe(),{guides:l,numberFormat:d,specLayers:h,colorScale:g}=O((0,Y.useShallow)(U=>({guides:U.guides,numberFormat:U.config.numberFormat,specLayers:U.spec.layers,colorScale:U.scales.color}))),m=(0,v.useMemo)(()=>(0,u.buildAverageLineSymbols)(h,g).get(t.id)??null,[h,g,t.id]),f=m?c(m.geom,r.type)?.swatchShape??"square":null,p=at(m?.layerId,m?.groupValue,10),A=(0,v.useMemo)(()=>wi(t.params.label,(0,u.formatRuleValue)({guides:l,numberFormat:d,layer:t,locale:n})),[l,d,n,t]),{fonts:x}=ye(),S=B(),b=R(u.resolveRuleLabelStyle,S.geom.rule.label(t),S.graph()),j=(0,v.useMemo)(()=>(0,u.toFontSpec)(b,x.familyDefault),[b,x.familyDefault]),w=(0,v.useMemo)(()=>A===null?null:(0,u.truncateToWidth)(A,ki(a,f!==null),U=>i.measureText(U,j).width),[A,a,f,j,i]),P=(0,v.useMemo)(()=>w===null?0:i.measureText(w,j).width,[w,j,i]),C=N(t),M=t.data.getFirst();if(!M)return null;const k=C.get("stroke",M),T=b.textColor??(0,u.pickReadableTextColor)(k),L=bi(t,r),$=L?(0,u.getY)(M):(0,u.getX)(M);return $===null?null:(0,s.jsxs)("g",{"data-geom":"rule",className:Ai,children:[(0,s.jsx)(Vi,{strokeWidth:C.get("strokeWidth",M),dashArray:C.get("dashArray",M),lineCap:C.get("lineCap",M),lineJoin:C.get("lineJoin",M),isHorizontalLine:L,position:$,lineColor:k,effects:H((0,u.readGeomEffects)(C,M)),shouldAnimateTransitions:o}),w!==null&&w!==""&&(0,s.jsx)(Wi,{label:w,textStyle:b,textWidth:P,labelPosition:t.params.labelPosition,isHorizontalLine:L,position:$,color:k,textColor:T,symbolShape:f,symbolColor:m?.color??null,symbolAlpha:p.alpha,symbolCornerRadius:p.cornerRadius,panelWidth:a,shouldAnimateTransitions:o})]})}),Ki={geom:"rule",coord:"cartesian",render:({layer:e,coordSystem:t,formattingLocale:r,shouldAnimateTransitions:n,panelRect:o})=>(0,s.jsx)(Ui,{layer:e,coordSystem:t,formattingLocale:r,shouldAnimateTransitions:n,panelWidth:o.width}),renderHover:()=>null,renderHoverCompanions:()=>null},Yi=({layer:e,panelRect:t,styleReaders:r,shouldAnimateTransitions:n})=>{let o="";for(const a of e.data){const i=(0,u.getPaintedTileRect)(a);i!==null&&(o+=ie(pe(i,t),r.get("cornerRadius",a)))}return o===""?[]:[{kind:"region",pathData:o,shouldAnimateTransitions:n}]},Qi=(0,v.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const o=n?.type==="fade"?n:null,a=N(t),i=(0,v.useMemo)(()=>{const c=(0,u.createStableCellKeyGenerator)(t.data,t.mapping,t.id),l=[];for(const d of t.data){const h=(0,u.getPaintedTileRect)(d);h&&l.push({key:c(d),...h,fill:a.get("fill",d),opacity:a.get("alpha",d)*a.get("fillAlpha",d),rx:a.get("cornerRadius",d),stroke:a.get("stroke",d),strokeWidth:a.get("strokeWidth",d),effects:H((0,u.readGeomEffects)(a,d))})}return l.map(({key:d,...h})=>(0,s.jsx)(zi,{...h,isAnimated:r},d))},[t,a,r]);return o?(0,s.jsx)(E.motion.g,{initial:{opacity:0},animate:{opacity:1},transition:ns(o),children:i}):i}),zi=({isAnimated:e,...t})=>e?(0,s.jsx)(E.motion.rect,{initial:!1,style:{transformBox:"view-box",...t.effects},transition:Z,fill:t.fill,opacity:t.opacity,rx:t.rx,stroke:t.stroke,strokeWidth:t.strokeWidth,animate:{x:(0,u.toPercent)(t.x),y:(0,u.toPercent)(t.y),width:(0,u.toPercent)(t.width),height:(0,u.toPercent)(t.height)}}):(0,s.jsx)("rect",{style:{transformBox:"view-box",...t.effects},x:(0,u.toPercent)(t.x),y:(0,u.toPercent)(t.y),width:(0,u.toPercent)(t.width),height:(0,u.toPercent)(t.height),fill:t.fill,opacity:t.opacity,rx:t.rx,stroke:t.stroke,strokeWidth:t.strokeWidth}),Xi=({layer:e,primary:t,panelRect:r})=>{const n=N(e),o=(0,u.getPaintedTileRect)(t.observation);if(!o)return null;const a=n.get("fill",t.observation),i=n.get("alpha",t.observation)*n.get("fillAlpha",t.observation),c=n.get("stroke",t.observation,"hovered")??u.DEFAULT_HOVER_AFFORDANCE_COLOR,l=n.get("strokeWidth",t.observation,"hovered"),d=n.get("cornerRadius",t.observation,"hovered"),h=o.x*r.width,g=o.y*r.height,m=o.width*r.width,f=o.height*r.height;return(0,s.jsxs)("g",{"data-testid":"hovered-tile",children:[(0,s.jsx)("rect",{x:h-l,y:g-l,width:m+l*2,height:f+l*2,rx:d+l,fill:c,"data-testid":"hovered-tile-border"}),(0,s.jsx)("rect",{x:(0,u.toPercent)(o.x),y:(0,u.toPercent)(o.y),width:(0,u.toPercent)(o.width),height:(0,u.toPercent)(o.height),rx:d,fill:a,opacity:i,"data-testid":"hovered-tile-fill"})]})},qi={geom:"tile",coord:"cartesian",swatchShape:"square",guideMode:null,render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,s.jsx)(Qi,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({layer:e,primary:t,panelRect:r})=>(0,s.jsx)(Xi,{layer:e,primary:t,panelRect:r}),renderHoverCompanions:()=>null,getEditOutlineShapes:Yi},_e=({primary:e,companions:t})=>{const r=(0,s.jsxs)(s.Fragment,{children:[t.map(n=>(0,s.jsx)(he,{hit:n,project:J},`companion-${n.layerId}-${n.pointIndex}`)),e?(0,s.jsx)(Re,{hit:e,project:J}):null]});return e?(0,s.jsx)("g",{"data-testid":"hovered-point",children:r}):r},Fn=e=>{const t=De(e);return{origin:{x:t.centerX,y:t.centerY},scaleX:t.radius,scaleY:t.radius}},Ji=e=>({...De(e),digits:2}),Gn=(e,t,r)=>K(e,t,De(r)),Et=e=>{const[t,...r]=e;if(!t)return"";const n=r.map(o=>`L ${o.x} ${o.y}`).join(" ");return`M ${t.x} ${t.y} ${n} Z`},Zi=(0,v.memo)(function({layer:t}){const r=N(t),n=(0,v.useMemo)(()=>{const o=(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id),a=[];return t.data.groupBy(u.GROUP_VARIABLES.group).forEach(i=>{const c=[...i],l=Hn(c);if(!l)return;const d=c[0];d&&a.push({key:o(d),fillPath:l.fillPath,outlinePath:l.outlinePath,fill:r.get("fill",d),stroke:r.get("stroke",d)??r.get("fill",d),fillOpacity:r.get("fillAlpha",d)*r.get("alpha",d),strokeOpacity:r.get("strokeAlpha",d)*r.get("alpha",d),strokeWidth:r.get("strokeWidth",d)})}),a},[t.data,t.id,t.mapping,r]);return(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"area",style:H((0,u.readGeomEffects)(r,t.data.getFirst()??void 0)),className:_,children:n.map(o=>(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:o.fillPath,fill:o.fill,fillOpacity:o.fillOpacity,fillRule:"evenodd"}),(0,s.jsx)("path",{d:o.outlinePath,fill:"none",stroke:o.stroke,strokeWidth:o.strokeWidth,opacity:o.strokeOpacity,vectorEffect:"non-scaling-stroke"})]},o.key))})}),Hn=e=>{const t=Dn(e);if(t===null)return null;const r=Et(t.outer);return{fillPath:t.hole===null?r:`${r} ${Et(t.hole)}`,outlinePath:r}},Dn=e=>{const t=[];for(const o of e){const a=(0,u.getX)(o),{innerRadius:i,outerRadius:c}=(0,u.getRadiusExtent)(o);a===null||i===null||c===null||t.push({angle:a,outer:K(a,c),inner:K(a,i)})}if(t.length===0)return null;t.sort((o,a)=>o.angle-a.angle);const r=t.map(o=>o.outer),n=t.map(o=>o.inner);return{outer:r,hole:n.some(o=>o.x!==0||o.y!==0)?[...n].reverse():null}},_i=({layer:e,panelRect:t})=>{const r=Fn(t),n=[],o=[];return e.data.groupBy(u.GROUP_VARIABLES.group).forEach(a=>{const i=[...a],[c]=i;if(c===void 0)return;if(i.length===1){const h=(0,u.getX)(c),g=(0,u.getYMax)(c)??(0,u.getY)(c);h!==null&&g!==null&&o.push(Gn(h,g,t));return}const l=Dn(i);if(l===null)return;const d=l.hole===null?"":wt(l.hole,r);n.push({kind:"region",key:String((0,u.getGroup)(c)),pathData:wt(l.outer,r)+d,fillRule:"evenodd"})}),o.length>0&&n.push({kind:"dots",centers:o,size:u.DEFAULT_POINT_SIZE_PX}),n},$i=({layer:e,primary:t,companions:r})=>{const n=N(e),o=(0,u.getGroup)(t.observation),a=(0,v.useMemo)(()=>Hn([...e.data.filter(u.GROUP_VARIABLES.group,"eq",o)]),[e.data,o]);if(!a)return null;const i=n.get("fill",t.observation,"hovered"),c=n.get("stroke",t.observation,"hovered")??i,l=n.get("alpha",t.observation,"hovered"),d=n.get("fillAlpha",t.observation,"hovered")*l,h=n.get("strokeAlpha",t.observation,"hovered")*l,g=n.get("strokeWidth",t.observation,"hovered");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"area","data-testid":"hovered-area",style:H((0,u.readGeomEffects)(n,t.observation,"hovered")),className:_,children:[(0,s.jsx)("path",{d:a.fillPath,fill:i,fillOpacity:d,fillRule:"evenodd","data-testid":"hovered-area-fill"}),(0,s.jsx)("path",{d:a.outlinePath,fill:"none",stroke:c,strokeWidth:g,opacity:h,vectorEffect:"non-scaling-stroke","data-testid":"hovered-area-edge"})]}),r.map(m=>(0,s.jsx)(he,{hit:m,project:J},`companion-${m.layerId}-${m.pointIndex}`)),(0,s.jsx)(Re,{hit:t,project:J,"data-testid":"hovered-area-point"})]})},el={geom:"area",coord:"polar",swatchShape:"area",guideMode:"crosshair",render:({layer:e})=>(0,s.jsx)(Zi,{layer:e}),renderHover:({layer:e,primary:t,group:r,related:n})=>(0,s.jsx)($i,{layer:e,primary:t,companions:[...r,...n]}),renderHoverCompanions:({related:e})=>(0,s.jsx)(_e,{companions:e}),getEditOutlineShapes:_i,getOverlayAnchor:({observation:e})=>{const t=(0,u.getX)(e),r=(0,u.getYMax)(e)??(0,u.getY)(e);if(t===null||r===null)return null;const{x:n,y:o}=J(t,r);return{x:n,y:1-o}}},Yt=e=>{const{startAngle:t,endAngle:r}=(0,u.getAngleExtent)(e),{innerRadius:n,outerRadius:o}=(0,u.getRadiusExtent)(e);return t===null||r===null||n===null||o===null?null:{startAngle:t,endAngle:r,innerRadius:n,outerRadius:o}},Wn=(e,t,r,n)=>{const o=new Map;for(const i of e.data){const c=Yt(i);if(c===null)continue;const l=(0,u.buildSliceGroupKey)(t,c),d=n(i,c),h=o.get(l);h===void 0?o.set(l,{firstObservation:i,members:[d]}):h.members.push(d)}const a=new Map;for(const[i,{firstObservation:c,members:l}]of o)a.set(i,{style:nt(r,c),union:(0,u.getUnionExtent)(l),members:l});return a},Qt=(e,t,r)=>{const n=Wn(e,t,r,(a,i)=>i),o=new Map;for(const[a,{style:i,union:c}]of n)o.set(a,{style:i,union:c});return o},tl=(e,t,r,n,o)=>e.get((0,u.buildSliceGroupKey)(t,o))??{style:nt(r,n),union:(0,u.getUnionExtent)([o])},zt=({style:e,union:t})=>(0,u.resolvePolarBarCornerRadiusUnit)(e.cornerRadius,t.outerRadius-t.innerRadius),Vn=(e,t,r,n)=>(0,u.buildPolarBarArcPath)({...t.union,cornerRadius:zt(t),slice:r==="x"?{axis:"radius",from:e.innerRadius,to:e.outerRadius}:{axis:"angle",from:e.startAngle,to:e.endAngle}},n),rl=ln(Qt),nl=({layer:e,sourceLayer:t,coordSystem:r,panelRect:n,styleReaders:o,shouldAnimateTransitions:a})=>{const{bandAxis:i}=r,c=rl(t,i,o),l=Ji(n);let d="";for(const h of e.data){const g=Yt(h);if(g===null)continue;const m=c.get((0,u.buildSliceGroupKey)(i,g));m!==void 0&&(d+=Vn(g,m,i,l)??"")}return d===""?[]:[{kind:"region",pathData:d,shouldAnimateTransitions:a}]},Cr=Math.PI*2,$e=(e,t)=>({stroke:e,strokeWidth:t,vectorEffect:"non-scaling-stroke"}),ol=(0,v.memo)(function({layer:t,coordSystem:r,shouldAnimateTransitions:n,intro:o}){const a=(0,v.useId)(),i=ot(o?.type==="grow"&&(o.growAxis==="angle"||o.growAxis==="radius")?o:null,n),c=r.bandAxis!=="x",l=N(t),d=(0,v.useMemo)(()=>{const h=(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id);return[...Wn(t,r.bandAxis,l,(g,m)=>({key:h(g),...m,fill:l.get("fill",g),opacity:l.get("alpha",g)*l.get("fillAlpha",g)})).values()].map((g,m)=>({...g,key:g.members[0]?.key??String(m)}))},[t,r.bandAxis,l]);return(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"bar",style:H((0,u.readGeomEffects)(l,t.data.getFirst()??void 0)),className:_,children:d.map((h,g)=>{const{stroke:m,strokeWidth:f,strokeAlpha:p}=h.style,A=m!==void 0,x=(0,u.resolveBarBorderTreatment)(f),S=m===void 0?{}:$e(m,x.separatorWidth),b=m===void 0?void 0:$e(m,x.outlineWidth),j=h.members.map(M=>{const{key:k,...T}=M;return i.isAnimated?(0,s.jsx)(al,{...T,animation:i,sweepsInOnLateMount:c,introKey:k,pathProps:{fill:T.fill,opacity:T.opacity,...S}},k):(0,s.jsx)("path",{d:(0,u.buildPolarBarArcPath)(T)??void 0,fill:T.fill,opacity:T.opacity,...S},k)}),w=zt(h);if(!A&&w<=0)return(0,s.jsx)(v.Fragment,{children:j},h.key);const P=`${a}${g}`;if(i.isAnimated)return(0,s.jsx)("g",{clipPath:`url(#${P})`,children:(0,s.jsx)(sl,{...h.union,cornerRadius:w,animation:i,sweepsInOnLateMount:c,introKey:h.members[0]?.key,clipId:P,outlineProps:b,outlineOpacity:p,children:j})},h.key);const C=(0,u.buildPolarBarArcPath)({...h.union,cornerRadius:w});return(0,s.jsxs)("g",{clipPath:`url(#${P})`,children:[(0,s.jsx)("clipPath",{id:P,children:(0,s.jsx)("path",{d:C})}),j,b!==void 0&&(0,s.jsx)("path",{d:C,fill:"none",opacity:p,...b})]},h.key)})})}),Un=({startAngle:e,endAngle:t,innerRadius:r,outerRadius:n,cornerRadius:o,animation:a,sweepsInOnLateMount:i,introKey:c})=>{const l=a.activeIntro?.growAxis==="angle"?a.activeIntro:null,d=a.activeIntro?.growAxis==="radius"?a.activeIntro:null,h=i&&!a.isLayerEntrance,g=l?.baseline??(h?Cr:e),m=l?.baseline??(h?Cr:t),f=d?d.baseline:r,p=d?d.baseline:n,A=(0,E.useMotionValue)(g),x=(0,E.useMotionValue)(m),S=(0,E.useMotionValue)(f),b=(0,E.useMotionValue)(p),j=(0,E.useMotionValue)((0,u.buildPolarBarArcPath)({startAngle:g,endAngle:m,innerRadius:f,outerRadius:p,cornerRadius:o})??""),w=kt(a,c,l);(0,v.useEffect)(()=>{const C=w(),M=[(0,E.animate)(A,e,C),(0,E.animate)(x,t,C)];return()=>{for(const k of M)k.stop()}},[A,x,e,t,w]);const P=kt(a,c,d);return(0,v.useEffect)(()=>{const C=P(),M=[(0,E.animate)(S,r,C),(0,E.animate)(b,n,C)];return()=>{for(const k of M)k.stop()}},[S,b,r,n,P]),(0,v.useEffect)(()=>{const C=()=>{j.set((0,u.buildPolarBarArcPath)({startAngle:A.get(),endAngle:x.get(),innerRadius:S.get(),outerRadius:b.get(),cornerRadius:o})??"")};C();const M=[A,x,S,b].map(k=>k.on("change",C));return()=>{for(const k of M)k()}},[A,x,S,b,o,j]),j},al=({pathProps:e,...t})=>{const r=Un(t);return(0,s.jsx)(E.motion.path,{d:r,transition:Z,...e})},sl=({clipId:e,outlineProps:t,outlineOpacity:r,children:n,...o})=>{const a=Un(o);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("clipPath",{id:e,children:(0,s.jsx)(E.motion.path,{d:a})}),n,t!==void 0&&(0,s.jsx)(E.motion.path,{d:a,fill:"none",opacity:r,transition:Z,...t})]})},il=(e,t,r)=>{const n=e==="solo"||e==="floor",o=e==="solo"||e==="ceiling",a=!(0,u.isFullTurnSweep)(r.startAngle,r.endAngle);return t==="x"?{innerArc:n,outerArc:o,startSpoke:a,endSpoke:a}:{innerArc:!0,outerArc:!0,startSpoke:n&&a,endSpoke:o&&a}},Kn=({observation:e,bandAxis:t,styleReaders:r,groupPaints:n,state:o})=>{const a=(0,v.useId)(),i=Yt(e);if(i===null)return null;const c=tl(n,t,r,e,i),l=Vn(i,c,t);if(l===void 0)return null;const d=r.get("fill",e,o),h=r.get("alpha",e,o)*r.get("fillAlpha",e,o),{stroke:g,strokeWidth:m,strokeAlpha:f}=c.style;if(g===void 0)return(0,s.jsx)("path",{d:l,fill:d,opacity:h,"data-testid":"arc-segment"});const p=(0,u.resolveBarBorderTreatment)(m),A=il((0,u.getStackRole)(e),t,c.union),x=cl(i,ul(A)),S=(0,u.buildPolarBarArcPath)({...c.union,cornerRadius:zt(c)});return(0,s.jsxs)("g",{clipPath:`url(#${a})`,"data-testid":"arc-segment",children:[(0,s.jsx)("clipPath",{id:a,children:(0,s.jsx)("path",{d:l})}),(0,s.jsx)("path",{d:l,fill:d,opacity:h}),x!==""&&(0,s.jsx)("path",{d:x,fill:"none",opacity:h,...$e(g,p.separatorWidth)}),(0,s.jsx)("path",{d:S,fill:"none",opacity:f,...$e(g,p.outlineWidth)})]})},ll=({layer:e,sourceLayer:t,coordSystem:r})=>{const n=N(t),o=(0,v.useMemo)(()=>Qt(t,r.bandAxis,n),[t,r.bandAxis,n]),a=(0,u.createStableKeyGenerator)(e.data,e.mapping,e.id),i=[];for(const c of e.data)i.push((0,s.jsx)(Kn,{observation:c,bandAxis:r.bandAxis,styleReaders:n,groupPaints:o},a(c)));return(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"bar",className:_,children:i})},Fe=(e,t)=>{const r=K(t,e);return`${r.x},${r.y}`},Mr=(e,t,r)=>{if(e<=0)return"";const n=Fe(e,t);if((0,u.isFullTurnSweep)(t,r))return`M${n}A${e},${e} 0 1 1 ${Fe(e,t+Math.PI)}A${e},${e} 0 1 1 ${n}`;const o=r-t;return`M${n}A${e},${e} 0 ${Math.abs(o)>Math.PI?1:0} ${o>=0?1:0} ${Fe(e,r)}`},Br=(e,t,r)=>`M${Fe(t,e)}L${Fe(r,e)}`,cl=(e,t)=>{const{startAngle:r,endAngle:n,innerRadius:o,outerRadius:a}=e,i=(0,u.isFullTurnSweep)(r,n);return[t.innerArc?Mr(o,r,n):"",t.outerArc?Mr(a,r,n):"",t.startSpoke&&!i?Br(r,o,a):"",t.endSpoke&&!i?Br(n,o,a):""].filter(Boolean).join("")},ul=e=>({innerArc:!e.innerArc,outerArc:!e.outerArc,startSpoke:!e.startSpoke,endSpoke:!e.endSpoke}),dl=({layer:e,coordSystem:t,primary:r})=>{const n=N(e),o=(0,v.useMemo)(()=>Qt(e,t.bandAxis,n),[e,t.bandAxis,n]);return(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"arc","data-testid":"hovered-arc",style:H((0,u.readGeomEffects)(n,r.observation,"hovered")),className:_,children:(0,s.jsx)(Kn,{observation:r.observation,bandAxis:t.bandAxis,styleReaders:n,groupPaints:o,state:"hovered"})})},hl={geom:"bar",coord:"polar",swatchShape:"slice",guideMode:"band",render:({layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n})=>(0,s.jsx)(ol,{layer:e,coordSystem:t,shouldAnimateTransitions:r,intro:n}),renderHighlight:({layer:e,sourceLayer:t,coordSystem:r})=>(0,s.jsx)(ll,{layer:e,sourceLayer:t,coordSystem:r}),renderHover:({layer:e,coordSystem:t,primary:r})=>(0,s.jsx)(dl,{layer:e,coordSystem:t,primary:r}),renderHoverCompanions:()=>null,getEditOutlineShapes:nl},gl=(0,v.memo)(function({layer:t}){const r=N(t),n=(0,v.useMemo)(()=>{const o=(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id),a=[];return t.data.groupBy(u.GROUP_VARIABLES.group).forEach(i=>{const c=[...i],l=Yn(c);if(!l)return;const d=c[0];d&&a.push({key:o(d),pathData:l,color:r.get("stroke",d),opacity:r.get("alpha",d),strokeOpacity:r.get("strokeAlpha",d),strokeWidth:r.get("strokeWidth",d),lineCap:r.get("lineCap",d),lineJoin:r.get("lineJoin",d),strokeDasharray:(0,u.toStrokeDasharray)(r.get("dashArray",d),r.get("strokeWidth",d))})}),a},[t.data,t.id,t.mapping,r]);return(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"line",style:H((0,u.readGeomEffects)(r,t.data.getFirst()??void 0)),className:_,children:n.map(o=>(0,s.jsx)("path",{d:o.pathData,fill:"none",stroke:o.color,strokeWidth:o.strokeWidth,opacity:o.opacity,strokeOpacity:o.strokeOpacity,strokeDasharray:o.strokeDasharray,strokeLinecap:o.lineCap,strokeLinejoin:o.lineJoin,vectorEffect:"non-scaling-stroke"},o.key))})}),Yn=e=>{const t=Qn(e);return t.length===0?null:Et(t)},Qn=e=>{const t=[];for(const r of e){const n=(0,u.getX)(r),o=(0,u.getY)(r);n===null||o===null||t.push({angle:n,point:K(n,o)})}return t.sort((r,n)=>r.angle-n.angle),t.map(r=>r.point)},vl=({layer:e,panelRect:t,styleReaders:r})=>{const n=Fn(t),o=[],a=[];return e.data.groupBy(u.GROUP_VARIABLES.group).forEach(i=>{const c=[...i],[l]=c;if(l===void 0)return;if(c.length===1){const h=(0,u.getX)(l),g=(0,u.getY)(l);h!==null&&g!==null&&a.push(Gn(h,g,t));return}const d=wt(Qn(c),n);d!==""&&o.push({kind:"stroke",key:String((0,u.getGroup)(l)),pathData:d,width:r.get("strokeWidth",l)})}),a.length>0&&o.push({kind:"dots",centers:a,size:u.DEFAULT_POINT_SIZE_PX}),o},fl=({layer:e,primary:t,companions:r})=>{const n=N(e),o=(0,u.getGroup)(t.observation),a=(0,v.useMemo)(()=>Yn([...e.data.filter(u.GROUP_VARIABLES.group,"eq",o)]),[e.data,o]);if(!a)return null;const i=n.get("stroke",t.observation,"hovered"),c=n.get("alpha",t.observation,"hovered"),l=n.get("strokeAlpha",t.observation,"hovered"),d=n.get("strokeWidth",t.observation,"hovered"),h=(0,u.toStrokeDasharray)(n.get("dashArray",t.observation,"hovered"),d),g=n.get("lineCap",t.observation,"hovered"),m=n.get("lineJoin",t.observation,"hovered");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"line","data-testid":"hovered-line",style:H((0,u.readGeomEffects)(n,t.observation,"hovered")),className:_,children:(0,s.jsx)("path",{d:a,fill:"none",stroke:i,strokeWidth:d,opacity:c,strokeOpacity:l,strokeDasharray:h,strokeLinecap:g,strokeLinejoin:m,vectorEffect:"non-scaling-stroke","data-testid":"hovered-line-path"})}),r.map(f=>(0,s.jsx)(he,{hit:f,project:J},`companion-${f.layerId}-${f.pointIndex}`)),(0,s.jsx)(Re,{hit:t,project:J,"data-testid":"hovered-line-point"})]})},ml={geom:"line",coord:"polar",swatchShape:"line",guideMode:"crosshair",render:({layer:e})=>(0,s.jsx)(gl,{layer:e}),renderHover:({layer:e,primary:t,group:r,related:n})=>(0,s.jsx)(fl,{layer:e,primary:t,companions:[...r,...n]}),renderHoverCompanions:({related:e})=>(0,s.jsx)(_e,{companions:e}),getEditOutlineShapes:vl,getOverlayAnchor:({observation:e})=>{const t=(0,u.getX)(e),r=(0,u.getY)(e);if(t===null||r===null)return null;const{x:n,y:o}=J(t,r);return{x:n,y:1-o}}},pl=(0,v.memo)(function({layer:t,shouldAnimateTransitions:r,intro:n}){const o=N(t),a=ot(n?.type==="grow"&&n.growAxis==="size"?n:null,r);return(0,v.useMemo)(()=>{const i=a.activeIntro?(0,u.createStableKeyGenerator)(t.data,t.mapping,t.id):null,c=[];let l=0;for(const d of t.data)c.push((0,s.jsx)(gn,{observation:d,project:J,styleReaders:o,animation:a,introKey:i?.(d)},String(l++)));return c},[t.data,t.mapping,t.id,o,a])}),xl={geom:"point",coord:"polar",swatchShape:"circle",render:({layer:e,shouldAnimateTransitions:t,intro:r})=>(0,s.jsx)(pl,{layer:e,shouldAnimateTransitions:t,intro:r}),renderHover:({primary:e,group:t,related:r})=>(0,s.jsx)(_e,{primary:e,companions:[...t,...r]}),renderHoverCompanions:({related:e})=>(0,s.jsx)(_e,{companions:e}),getEditOutlineShapes:e=>fn({...e,project:J}),getOverlayAnchor:({observation:e})=>{const t=(0,u.getX)(e),r=(0,u.getY)(e);if(t===null||r===null)return null;const{x:n,y:o}=J(t,r);return{x:n,y:1-o}}},zn={bar:{cartesian:Is,polar:hl},line:{cartesian:Ws,polar:ml},area:{cartesian:ps,polar:el},point:{cartesian:Us,polar:xl},rule:{cartesian:Ki},tile:{cartesian:qi}};function it(e){return typeof e=="function"?{overlay:!1,fn:e}:{overlay:!0,fn:e.fn}}function Xn(e){return e?it(e.render).overlay:!1}function yl(e,t){return typeof e=="string"?{...t,geom:e}:{...t,definition:e,geom:e.type}}function qn(e=[]){const t={};for(const[r,n]of Object.entries(zn))t[r]={...n};for(const r of e)(t[r.geom]??={})[r.coord]=r;return(r,n)=>t[r]?.[n]??null}var Al=()=>(0,Lt.createStore)(e=>({boundary:null,setBoundary:t=>e(r=>bl(r.boundary,t)?r:{boundary:t})})),Rt=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,bl=(e,t)=>e===t?!0:e===null||t===null?!1:Rt(e.frame,t.frame)&&Rt(e.client,t.client),et=e=>{const t=(0,v.useRef)(e);return t.current=e,t},Sl=()=>{const e=new Map;return(0,Lt.createStore)(t=>({hover:u.RESTING_HOVER_STATE,tooltipAnchor:null,pointerRegions:[],isPointerSuspended:!1,isQueryOwnedByEditor:!1,setHoverState:r=>t(n=>n.hover===r?n:{hover:r}),setTooltipAnchor:r=>t(n=>jl(n.tooltipAnchor,r)?n:{tooltipAnchor:r}),publishPointerRegions:(r,n)=>{n.length===0?e.delete(r):e.set(r,n);const o=(0,u.orderPointerRegions)(e);t(a=>(0,u.arePointerRegionListsEqual)(a.pointerRegions,o)?a:{pointerRegions:o})},setPointerSuspended:r=>t(n=>n.isPointerSuspended===r?n:{isPointerSuspended:r}),setQueryOwnedByEditor:r=>t(n=>n.isQueryOwnedByEditor===r?n:{isQueryOwnedByEditor:r})}))},jl=(e,t)=>e===t?!0:e===null||t===null?!1:e.x===t.x&&e.y===t.y&&e.placement===t.placement&&e.annotationId===t.annotationId,wl=(e,t)=>{const r=(0,v.useMemo)(()=>({layers:e,coordSystem:t}),[e,t]),n=(0,v.useRef)(null);n.current===null&&(n.current=new u.HoverEngine(r));const o=n.current,a=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(!a.current){a.current=!0;return}o.update(r)},[o,r]),o},Jn=(0,v.createContext)(null),Zn=({children:e})=>{const{layers:t,coordSystem:r}=O((0,Y.useShallow)(c=>({layers:c.layers,coordSystem:c.coordSystem}))),n=wl(t,r),[o]=(0,v.useState)(()=>Sl()),a=(0,v.useRef)(null),i=(0,v.useRef)(null);return i.current===null&&(i.current={engine:n,store:o,overlayRef:a}),(0,s.jsx)(Jn.Provider,{value:i.current,children:e})},ge=()=>{const e=(0,v.useContext)(Jn);if(e===null)throw new Error("useHoverContext must be used inside a <HoverProvider>.");return e};function _n(e,t){const{engine:r}=ge(),n=(0,v.useRef)(t);(0,v.useEffect)(()=>{n.current=t},[t]),(0,v.useEffect)(()=>(r.registerHitTester(e,o=>n.current(o)),()=>r.unregisterHitTester(e)),[r,e])}var Pl=({hitTest:e,input:t})=>{const r=(0,v.useMemo)(()=>e(t),[e,t.layer.data,t.panelRect.x,t.panelRect.y,t.panelRect.width,t.panelRect.height]);return _n(t.layer.id,r),null},kl="graphy_root",Xt=()=>typeof document>"u"?null:document.getElementById(kl)??document.body,El="_10igzta0",$n=({rect:e,zIndex:t,container:r,boxRef:n,children:o,...a})=>r===null?null:(0,Zr.createPortal)((0,s.jsx)("div",{...a,ref:n,className:El,style:{transform:`translate(${e.left}px, ${e.top}px)`,width:e.width,height:e.height,zIndex:t},children:o}),r),Rl=({rect:e,children:t})=>{const[r]=(0,v.useState)(Xt);return(0,s.jsx)($n,{rect:e,zIndex:je.panelOverlay,container:r,children:t})},eo=(e,t)=>{const r=et(e),n=et(t),o=(0,v.useRef)(null),a=(0,v.useRef)(null),i=(0,v.useMemo)(()=>{const c=()=>{a.current!==null&&(clearTimeout(a.current),a.current=null),o.current=null},l=()=>{a.current!==null&&(clearTimeout(a.current),a.current=null);const h=o.current;h!==null&&(o.current=null,r.current(...h))};return{run:(...h)=>{if(n.current<=0){r.current(...h);return}o.current=h,a.current!==null&&clearTimeout(a.current),a.current=setTimeout(l,n.current)},flush:l,cancel:c}},[r,n]);return(0,v.useEffect)(()=>()=>{a.current!==null&&clearTimeout(a.current)},[]),i},Cl={width:0,height:0,isDefault:!0},to=({debounce:e=0,onResize:t}={})=>{const[r,n]=(0,v.useState)(Cl),o=(0,v.useRef)(null),a=eo(d=>{const h=o.current;h&&h.width===d.width&&h.height===d.height||(o.current={width:d.width,height:d.height},t?.(d),n(d))},e),i=(0,v.useRef)(null),c=(0,v.useRef)(null),l=(0,v.useCallback)(d=>{i.current!==d&&(i.current&&c.current?.unobserve(i.current),i.current=d,d&&(c.current??=new ResizeObserver(([h])=>{if(!h)return;const g=Math.round(h.contentBoxSize[0]?.inlineSize??h.contentRect.width),m=Math.round(h.contentBoxSize[0]?.blockSize??h.contentRect.height);a.run({width:g,height:m,isDefault:!1})}),c.current.observe(d)))},[a]);return{...r,setElement:l}};function ro(){const[e,t]=(0,v.useState)(null),r=(0,v.useRef)(null),n=(0,v.useRef)(null),o=(0,v.useRef)(null),a=(0,v.useCallback)(()=>{o.current=null;const d=n.current;if(!d)return;const h=d.getBoundingClientRect();if(h.width===0||h.height===0){r.current!==null&&(r.current=null,t(null));return}const g={left:h.left,top:h.top,width:h.width,height:h.height},m=r.current;m&&m.left===g.left&&m.top===g.top&&m.width===g.width&&m.height===g.height||(r.current=g,t(g))},[]),i=(0,v.useCallback)(()=>{o.current===null&&(o.current=requestAnimationFrame(a))},[a]),{setElement:c}=to({onResize:i}),l=(0,v.useCallback)(d=>{n.current=d,c(d),d&&a()},[c,a]);return(0,v.useEffect)(()=>(window.addEventListener("scroll",i,!0),window.addEventListener("resize",i),()=>{window.removeEventListener("scroll",i,!0),window.removeEventListener("resize",i),o.current!==null&&cancelAnimationFrame(o.current)}),[i]),{measureRef:l,screenRect:e}}function no(e){const{engine:t,store:r}=ge();return(0,v.useCallback)((n,o)=>{const{hover:a,setHoverState:i,setTooltipAnchor:c}=r.getState(),l=n===null?u.RESTING_HOVER_STATE:t.resolveHoverByKey(e,n);if(l.primary===null){a.primary?.layerId===e&&(i(u.RESTING_HOVER_STATE),c(null));return}i(l),c(o?{x:o.clientX,y:o.clientY,placement:"top"}:null)},[t,r,e])}var Ml=({render:e,input:t})=>{const r=no(t.layer.id),{measureRef:n,screenRect:o}=ro();return(0,v.useEffect)(()=>()=>r(null),[r]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{ref:n,x:0,y:0,width:"100%",height:"100%",fill:"none",pointerEvents:"none"}),o&&(0,s.jsx)(Rl,{rect:o,children:(0,s.jsx)(Bl,{render:e,input:t,pushHover:r,panelRect:o})})]})},Bl=({render:e,input:t,pushHover:r,panelRect:n})=>e({...t,overlay:{pushHover:r,panelRect:n}}),ne={readonly:"readonly",editable:"editable",pointAndEdit:"point-and-edit"},ue={[ne.readonly]:{tooltips:!0,annotations:!0,observationMenu:!1,hoverPaint:!0,editOutline:!1,overlayMenu:!1,observationsPress:!1,graphPress:!1,guidePress:!1,holdsHoverWhileSelected:!0,tolerance:null,editorSurface:!1,inlineTextEditing:!1},[ne.editable]:{tooltips:!1,annotations:!0,observationMenu:!0,hoverPaint:!0,editOutline:!1,overlayMenu:!1,observationsPress:!1,graphPress:!1,guidePress:!1,holdsHoverWhileSelected:!0,tolerance:null,editorSurface:!0,inlineTextEditing:!0},[ne.pointAndEdit]:{tooltips:!1,annotations:!1,observationMenu:!1,hoverPaint:!1,editOutline:!0,overlayMenu:!0,observationsPress:!0,graphPress:!0,guidePress:!0,holdsHoverWhileSelected:!1,tolerance:{on:{edge:2,stroke:5,point:14},near:{main:8,cross:20}},editorSurface:!0,inlineTextEditing:!1}},Tl=new Set(Object.values(ne)),Il=e=>Tl.has(e),qt=e=>Il(e)?e:ne.readonly,tt={enabled:!0,durationScale:1,stagger:!0,staggerOrder:"main-axis"},Tr=1500,Ol=(e,t)=>t?{intro:{...tt,enabled:!1},transitions:!1,maxAnimatedGeoms:Tr}:typeof e=="boolean"?{intro:{...tt,enabled:e},transitions:e,maxAnimatedGeoms:Tr}:{intro:Ll(e?.intro),transitions:e?.transitions??!0,maxAnimatedGeoms:e?.maxAnimatedGeoms??1500},Ll=e=>typeof e=="boolean"?{...tt,enabled:e}:(0,jt.default)({},tt,e),Nl=(e,t)=>{const r=(0,E.useReducedMotion)(),n=(0,v.useMemo)(()=>Ol(e,r??!1),[e,r]),o=(0,v.useMemo)(()=>t.reduce((a,i)=>a+(0,u.countLayerGeoms)(i),0),[t]);return(0,v.useMemo)(()=>o<=n.maxAnimatedGeoms?n:{...n,intro:{...n.intro,enabled:!1},transitions:!1},[n,o])},Fl={loading:"جاري التحميل",error:"حدث خطأ ما",axisLabels:{placeholder:"إضافة تسمية"},defaultPropertyLabels:{date:"التاريخ",year:"السنة",quarter:"الربع",month:"الشهر",week:"الأسبوع",series:"السلسلة",category:"الفئة",columnNumber:({number:e})=>`العمود ${e}`,rowNumber:({number:e})=>`الصف ${e}`,seriesNumber:({number:e})=>`السلسلة ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} مقابل السابق`,short:({value:e})=>`${e} مقابل السابق`},fromPreviousYear:{long:({value:e})=>`${e} مقابل السنة السابقة`,short:({value:e})=>`${e} مقابل السنة السابقة`},fromPreviousMonth:{long:({value:e})=>`${e} مقابل الشهر السابق`,short:({value:e})=>`${e} مقابل الشهر السابق`},fromPreviousWeek:{long:({value:e})=>`${e} مقابل الأسبوع السابق`,short:({value:e})=>`${e} مقابل الأسبوع السابق`},fromPreviousDay:{long:({value:e})=>`${e} مقابل اليوم السابق`,short:({value:e})=>`${e} مقابل اليوم السابق`},fromPreviousHour:{long:({value:e})=>`${e} مقابل الساعة السابقة`,short:({value:e})=>`${e} مقابل الساعة السابقة`}},headlineMetrics:{averageLong:({value:e})=>`المتوسط ${e}`,averageShort:({value:e})=>`المتوسط ${e}`,total:({value:e})=>`المجموع ${e}`,totalConversionRate:({value:e})=>`معدل التحويل الإجمالي ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`من ${e}`},legend:{hiddenItems:"عناصر وسيلة الإيضاح المخفية"}},Gl={graph:Fl,dir:"rtl"},Hl={loading:"Loading",error:"Something went wrong",axisLabels:{placeholder:"Add label"},defaultPropertyLabels:{date:"Date",year:"Year",quarter:"Quarter",month:"Month",week:"Week",series:"Series",category:"Category",columnNumber:({number:e})=>`Column ${e}`,rowNumber:({number:e})=>`Row ${e}`,seriesNumber:({number:e})=>`Series ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} vs previous`,short:({value:e})=>`${e} vs prev`},fromPreviousYear:{long:({value:e})=>`${e} vs previous year`,short:({value:e})=>`${e} vs prev year`},fromPreviousMonth:{long:({value:e})=>`${e} vs previous month`,short:({value:e})=>`${e} vs prev month`},fromPreviousWeek:{long:({value:e})=>`${e} vs previous week`,short:({value:e})=>`${e} vs prev week`},fromPreviousDay:{long:({value:e})=>`${e} vs previous day`,short:({value:e})=>`${e} vs prev day`},fromPreviousHour:{long:({value:e})=>`${e} vs previous hour`,short:({value:e})=>`${e} vs prev hour`}},headlineMetrics:{averageLong:({value:e})=>`Average ${e}`,averageShort:({value:e})=>`Avg. ${e}`,total:({value:e})=>`Total ${e}`,totalConversionRate:({value:e})=>`Total conversion rate ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`from ${e}`},legend:{hiddenItems:"Hidden legend items"}},Dl={graph:Hl,dir:"ltr"},Wl={},Vl={loading:"A carregar",error:"Algo correu mal",axisLabels:{placeholder:"Adicionar etiqueta"},defaultPropertyLabels:{date:"Data",year:"Ano",quarter:"Trimestre",month:"Mês",week:"Semana",series:"Série",category:"Categoria",columnNumber:({number:e})=>`Coluna ${e}`,rowNumber:({number:e})=>`Linha ${e}`,seriesNumber:({number:e})=>`Série ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} vs anterior`,short:({value:e})=>`${e} vs ant`},fromPreviousYear:{long:({value:e})=>`${e} vs ano anterior`,short:({value:e})=>`${e} vs ano ant`},fromPreviousMonth:{long:({value:e})=>`${e} vs mês anterior`,short:({value:e})=>`${e} vs mês ant`},fromPreviousWeek:{long:({value:e})=>`${e} vs semana anterior`,short:({value:e})=>`${e} vs sem ant`},fromPreviousDay:{long:({value:e})=>`${e} vs dia anterior`,short:({value:e})=>`${e} vs dia ant`},fromPreviousHour:{long:({value:e})=>`${e} vs hora anterior`,short:({value:e})=>`${e} vs hora ant`}},headlineMetrics:{averageLong:({value:e})=>`Média ${e}`,averageShort:({value:e})=>`Méd. ${e}`,total:({value:e})=>`Total ${e}`,totalConversionRate:({value:e})=>`Taxa de conversão total ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`de ${e}`},legend:{hiddenItems:"Itens de legenda ocultos"}},Ul={graph:Vl,dir:"ltr"},lt={"en-GB":Dl,"en-US":Wl,ar:Gl,"pt-PT":Ul},Kl=({locale:e,overrides:t,fallbackLocale:r="en-GB",dictionaries:n})=>{const o=t??{},a=e??r,i=[...n.map(l=>l[a]),...n.map(l=>l[r])];return(l,d)=>{const h=d??{},g=l.split("."),m=o[l];if(m)return typeof m=="function"?m(h):m;for(const f of i){if(f===void 0)continue;const p=Ql(f,g);if(p)return typeof p=="function"?p(h):p}return l}},Yl=({locale:e,overrides:t})=>t?.dir??lt[e].dir??"ltr",Ql=(e,t)=>{let r=e;for(const n of t){if(typeof r!="object"||r===null)return;r=r[n]}if(typeof r=="string"||typeof r=="function")return r},zl=e=>{const t="en-GB";if(!e)return t;const r=e.trim().replace("_","-").toLowerCase();return Object.keys(lt).find(n=>n.toLowerCase()===r)??t},oo=(0,v.createContext)(null),Xl=[lt],Jt=()=>ql().translator,ao=({locale:e,children:t,i18nOverrides:r,dictionaries:n=Xl})=>{const o=zl(e),a=(0,v.useMemo)(()=>({translator:Kl({locale:o,overrides:r,fallbackLocale:"en-GB",dictionaries:n}),dir:Yl({locale:o,overrides:r})}),[r,o,n]);return(0,s.jsx)(Va.IntlProvider,{locale:o,timeZone:"UTC",children:(0,s.jsx)(oo.Provider,{value:a,children:t})})},ql=()=>{const e=(0,v.useContext)(oo);if(!e)throw new Error("useI18n must be used within IntlProvider");return e},Jl="bow4tg0",Zl="bow4tg1",_l="bow4tg2",$l="bow4tg3",ec="bow4tg4",Zt="_1ii3bsb0",so="_1ii3bsb1",io=(0,v.createContext)({colorScheme:"light",themeClass:Zt,inlineVarsStyle:{},themeValues:Ut("light",{})}),ct=()=>(0,v.useContext)(io),lo=({colorScheme:e,textScale:t=1,graphBackground:r,graphFontFamily:n,headingFontFamily:o,children:a})=>{const i=(0,v.useMemo)(()=>Ut(e),[e]),c=(0,v.useMemo)(()=>{const d={[y.vars.textScale]:String(t)};return r!==void 0&&(d[y.vars.graphBackground]=r),n!==void 0&&(d[y.vars.fontFamily]=n),o!==void 0&&(d[y.vars.fontFamilyHeading]=o),(0,Ot.assignInlineVars)(d)},[t,r,n,o]),l=(0,v.useMemo)(()=>({colorScheme:e,themeClass:e==="dark"?so:Zt,inlineVarsStyle:c,themeValues:i}),[e,c,i]);return(0,s.jsx)(io.Provider,{value:l,children:a})},co=({children:e,className:t,style:r})=>{const{themeClass:n,inlineVarsStyle:o}=ct();return(0,s.jsx)("div",{className:(0,W.default)(n,Zl,t),style:{...o,...r},children:e})},uo={modern:"'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif",timeless:"'Noto Serif', Georgia, 'Times New Roman', serif",fresh:"'Aeonik', 'Aeonik Fallback', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",technical:"'PT Mono', 'Courier New', monospace",handwritten:"'Permanent Marker', cursive",fineliner:"'Intruding Cat', cursive"},ho=e=>{const t=e!==null&&typeof e=="object"?e.fontFamily:e;return typeof t=="string"&&t.length>0?t:void 0},Ct=e=>{const t=ho(e);if(t!==void 0)return uo[t]??t},tc="_1cocly40",ke=({content:e})=>(0,s.jsx)(s.Fragment,{children:go(e.content??[e])}),go=e=>e.map((t,r)=>rc(t,r)),rc=(e,t)=>{if(e.type==="text")return nc(e,t);if(e.type==="hardBreak"||e.type==="hard_break")return(0,s.jsx)("br",{},t);const r=e.content?go(e.content):null;switch(e.type){case"doc":return(0,s.jsx)(v.Fragment,{children:r},t);case"heading":{const n=ic(e.attrs?.level);return lc(n,t,r,Ir(e.attrs))}case"paragraph":return(0,s.jsx)("p",{"data-variant":_t(e.attrs?.variant)??void 0,style:vo(Ir(e.attrs)),children:r},t);case"blockquote":return(0,s.jsx)("blockquote",{children:r},t);case"bulletList":case"bullet_list":return(0,s.jsx)("ul",{children:r},t);case"orderedList":case"ordered_list":return(0,s.jsx)("ol",{children:r},t);case"listItem":case"list_item":return(0,s.jsx)("li",{children:r},t);default:return(0,s.jsx)("span",{children:r},t)}},nc=(e,t)=>{const r=e.text??"";return!e.marks||e.marks.length===0?(0,s.jsx)("span",{children:r},t):e.marks.reduceRight((n,o,a)=>oc(o,n,`${t}-${a}`),r)},oc=(e,t,r)=>{switch(e.type){case"bold":case"strong":return(0,s.jsx)("strong",{children:t},r);case"italic":case"em":return(0,s.jsx)("em",{children:t},r);case"underline":return(0,s.jsx)("u",{children:t},r);case"strike":case"strikethrough":case"s":return(0,s.jsx)("s",{children:t},r);case"code":return(0,s.jsx)("code",{children:t},r);case"link":{const n=_t(e.attrs?.href);return(0,u.isSafeUrl)(n)?(0,s.jsx)("a",{className:tc,href:n,rel:"noopener noreferrer",target:"_blank",children:t},r):(0,s.jsx)("span",{children:t},r)}case"textStyle":{const n=ac(e.attrs);return n?(0,s.jsx)("span",{style:n,children:t},r):(0,s.jsx)("span",{children:t},r)}default:return(0,s.jsx)("span",{children:t},r)}},ac=e=>{if(!e)return null;const t={},r=_t(e.color);r&&(t.color=r);const n=Ct(e.font)??Ct(e.fontFamily);n&&(t.fontFamily=n);const o=sc(e.fontSize);return o&&(t.fontSize=o),Object.keys(t).length>0?t:null},sc=e=>{if(typeof e=="number"&&Number.isFinite(e))return`calc(${e}px * ${y.vars.textScale})`},_t=e=>typeof e=="string"&&e.length>0?e:void 0,ic=e=>typeof e!="number"?3:e<1?1:e>3?3:Math.round(e),lc=(e,t,r,n)=>{const o=vo(n);switch(e){case 1:return(0,s.jsx)("h1",{style:o,children:r},t);case 2:return(0,s.jsx)("h2",{style:o,children:r},t);case 3:return(0,s.jsx)("h3",{style:o,children:r},t)}},Ir=e=>{const t=e?.textAlign;if(t==="left"||t==="right"||t==="center"||t==="justify")return t},vo=e=>e?{textAlign:e}:void 0;function we(e){const{store:t}=ge();return(0,xe.useStore)(t,e)}var cc="_19519k80";var uc="_19519k82",dc="_19519k83",hc="_19519k85",gc="_19519k86",vc="_19519k87",fc="_19519k88",mc=e=>{const{overlayRef:t}=ge(),r=(0,v.useRef)(null),[n,o]=(0,v.useState)(!1),a=et(e);return(0,v.useEffect)(()=>{const i=t.current;if(!i)return;const c=d=>{r.current={clientX:d.clientX,clientY:d.clientY},o(!0),a.current?.()},l=()=>{r.current=null,o(!1)};return i.addEventListener("pointermove",c),i.addEventListener("pointerleave",l),()=>{i.removeEventListener("pointermove",c),i.removeEventListener("pointerleave",l)}},[t,a]),{cursorRef:r,isInside:n}},pc=24,xc=8,yc={x:0,y:0,top:0,left:0,right:0,bottom:0,width:0,height:0,toJSON:()=>({})},ze={boundary:[],padding:xc},Ac=()=>{const e=O((0,Y.useShallow)(b=>({layers:b.layers,coordSystem:b.coordSystem,scales:b.scales,guides:b.guides,numberFormat:b.config.numberFormat,parsingLocale:b.config.parsingLocale,comments:b.annotations.comments}))),{formattingLocale:t}=D(),r=B(),n=we(b=>b.hover),o=we(b=>b.tooltipAnchor),a=we(b=>b.isPointerSuspended),i=re("Tooltip",fo),c=(0,v.useRef)(()=>{}),{cursorRef:l,isInside:d}=mc(()=>c.current()),h=(0,v.useMemo)(()=>(0,u.buildTooltipContent)({...e,hover:n,readers:r,formattingLocale:t,activeCalloutId:o?.annotationId??null}),[e,n,r,t,o]),g=!a&&h!==null&&(d||o!==null),m=(0,v.useMemo)(()=>({getBoundingClientRect:()=>{if(o!==null)return jc(o);const b=l.current;return b===null?yc:Sc(b)}}),[l,o]),{refs:f,floatingStyles:p,update:A}=(0,X.useFloating)(wc({isOpen:g,tooltipAnchor:o,virtualReference:m}));if(c.current=A,!g)return null;const x=(0,s.jsx)("div",{ref:f.setFloating,role:"tooltip",className:fc,style:p,"data-testid":"chart-tooltip",children:(0,s.jsx)(i,{content:h})}),S=Xt();return S?(0,Zr.createPortal)((0,s.jsx)(co,{children:x}),S):x},fo=({content:e})=>{const t=oe(),r=O(l=>l.coordSystem),n=R(u.resolveTooltipStyle,B()),o=G(n.heading),a=G(n.label),i=G(n.value),c={paddingInline:n.box.paddingInline};return(0,s.jsxs)("div",{className:cc,style:bc(n.box),"data-testid":"chart-tooltip-body",children:[e.comment!==null&&(0,s.jsx)("div",{style:{...a,color:n.value.textColor,...c},"data-testid":"chart-tooltip-comment",children:(0,s.jsx)(ke,{content:e.comment})}),e.heading!==null&&(0,s.jsx)("div",{className:"_19519k81",style:{...o,...c},"data-testid":"chart-tooltip-heading",children:e.heading}),(0,s.jsx)("div",{className:uc,children:e.rows.map(l=>{const d=t(l.geom,r.type);return(0,s.jsx)(Pc,{row:l,swatchShape:d?.swatchShape??"square",shouldHighlight:l.isPrimary&&e.rows.length>1,labelStyle:a,valueStyle:i,paddingInline:n.box.paddingInline,highlightBackground:n.primaryRow.fill},l.key)})})]})},bc=e=>({background:e.fill,borderRadius:e.cornerRadius,paddingBlock:e.paddingBlock,boxShadow:Gt(e.shadow),...e.strokeWidth>0?{border:`${e.strokeWidth}px solid ${e.stroke}`}:{}}),Sc=e=>({x:e.clientX,y:e.clientY,top:e.clientY,left:e.clientX,right:e.clientX,bottom:e.clientY,width:0,height:0,toJSON:()=>({})}),jc=e=>({x:e.x,y:e.y,top:e.y,left:e.x,right:e.x,bottom:e.y,width:0,height:0,toJSON:()=>({})}),wc=({isOpen:e,tooltipAnchor:t,virtualReference:r})=>({open:e,placement:t!==null?t.placement:"right",middleware:t!==null?[(0,X.offset)(u.ANNOTATION_TOOLTIP_MARKER_GAP_PX),(0,X.shift)(ze),(0,X.flip)(ze)]:[(0,X.offset)(pc),(0,X.flip)(ze),(0,X.shift)(ze)],elements:{reference:r}}),Pc=({row:e,swatchShape:t,shouldHighlight:r,labelStyle:n,valueStyle:o,paddingInline:a,highlightBackground:i})=>(0,s.jsxs)("div",{className:dc,style:{paddingInline:a,...r?{backgroundColor:i}:{}},"data-testid":"chart-tooltip-row",children:[e.swatchColor===null?(0,s.jsx)("span",{className:hc,"aria-hidden":!0}):(0,s.jsx)(Ve,{shape:t,color:e.swatchColor,surface:"tooltip",label:e.label,lineType:e.swatchLineType,alpha:e.swatchAlpha,cornerRadius:e.swatchCornerRadius}),(0,s.jsx)("span",{className:gc,style:n,"data-testid":"chart-tooltip-label",children:e.label}),(0,s.jsx)("span",{className:vc,style:o,"data-testid":"chart-tooltip-value",children:e.value})]}),Mt={plansByLayerId:null,coordKey:null,introEndsAtMs:0},$t=(0,v.createContext)(Mt),kc=({intro:e,children:t})=>{const{layers:r,coordSystem:n,scales:o}=O((0,Y.useShallow)(i=>({layers:i.layers,coordSystem:i.coordSystem,scales:i.scales}))),[a]=(0,v.useState)(()=>Cc({layers:r,coordSystem:n,scales:o,intro:e}));return(0,s.jsx)($t.Provider,{value:a,children:t})},Ec=()=>{const{introEndsAtMs:e}=(0,v.useContext)($t),[t]=(0,v.useState)(()=>Mc(e)/1e3);return t},Rc=e=>{const{plansByLayerId:t,coordKey:r}=(0,v.useContext)($t),n=O(o=>mo(o.coordSystem));return t===null||r!==n?null:t.get(e)??null},Cc=({layers:e,coordSystem:t,scales:r,intro:n})=>{if(!n.enabled)return Mt;const o={durationScale:n.durationScale,stagger:n.stagger,staggerOrder:n.staggerOrder},a=new Map;for(const c of e){const l=(0,u.buildLayerIntroPlan)({layer:c,coordSystem:t,scales:r,options:o});l!==null&&a.set(c.id,l)}if(a.size===0)return Mt;const i=[...a.values()].reduce((c,l)=>Math.max(c,os(l)),0);return{plansByLayerId:a,coordKey:mo(t),introEndsAtMs:performance.now()+i*1e3}},Mc=e=>Math.max(0,e-performance.now()),mo=e=>e.type==="cartesian"?`cartesian-${e.mainAxis}`:e.type,po=e=>({x:e.axisLabel.x().resolve(),y:e.axisLabel.y().resolve()}),xo=e=>({x:e.tickLine.x().resolve(),y:e.tickLine.y().resolve()}),er=e=>(t,r)=>r===void 0?e.tickLabel[t]().resolve():e.tickLabel[r](t).resolve(),ut=e=>{const t={};for(const r of u.DATA_LABEL_ROLES){const n={};for(const o of u.RESOLVED_DATA_LABEL_POSITIONS)n[o]=(0,u.resolveDataLabelStyle)(e,r,o);t[r]=n}return t},yo=e=>({gap:e.legend().resolve().gap,popover:e.legend.popover().resolve()}),tr=e=>e.headline().resolve(),Bc=({textMeasurer:e,tickLabelStyles:t,tickLineStyles:r,familyDefault:n})=>o=>{const a=o.position==="top"||o.position==="bottom",i=(0,u.getAestheticFromScaleAestheticKey)(o.scaleAestheticKey),{offset:c,...l}=t(i,o.position),d=o.ticksVisible?Math.max(c,r[i].length):c,h=(0,u.toFontSpec)(l,n),g=o.ticks.map(f=>e.measureText(f.formattedLabel,h)),m=o.labelMaxWidthPx??Number.POSITIVE_INFINITY;if(a){if(o.labelRotation!==0){const f=g.map(p=>p.width);return Or(f,m)+2*d}return Math.max(...g.map(f=>f.height))+d}return Or(g.map(f=>f.width),m)+d},Or=(e,t)=>Math.min(Math.max(...e),t),Tc=({axisLabelStyles:e})=>t=>(0,u.computeLineBoxHeight)(e[(0,u.getAestheticFromScaleAestheticKey)(t.scaleAestheticKey)]),Ao=({textMeasurer:e,dataLabelStyles:t,familyDefault:r})=>(n,o,a)=>{const i=t[n][o],c=e.measureText(a,(0,u.toFontSpec)(i,r));return{...c,width:c.width+i.paddingInline*2,height:c.height+i.paddingBlock*2}},Ic=({textMeasurer:e,familyDefault:t})=>(r,n)=>e.measureText(r,(0,u.toFontSpec)(n,t)),Oc=({textMeasurer:e,familyDefault:t,headlineRowGap:r,itemGap:n,headlineItemStyles:o})=>(a,i)=>{const c=bo(a,o[i],e,t,r);return{width:So(c.map(l=>l.width))+Math.max(0,c.length-1)*n,height:Math.max(0,...c.map(l=>l.height))}},Lc=({textMeasurer:e,familyDefault:t,headlineRowGap:r,headlineItemStyles:n})=>(o,a)=>bo(o,n[a],e,t,r).map(i=>i.width),Nc=({textMeasurer:e,familyDefault:t,headlineItemStyles:r})=>(n,o,a=!1)=>{const i=(0,u.resolveHeadlineNumberStyle)(r[o],a);return{width:e.measureText(n,(0,u.toFontSpec)(i,t)).width,height:(0,u.computeLineBoxHeight)(i)}},Fc=e=>{const t=Oc(e),r=Nc(e);return(n,o,a=!1)=>n.kind==="perGroup"?t(n,o):r(n.value,o,a)},bo=(e,t,r,n,o)=>{const a=i=>Gc(i,t,r,n);return e.items.map(i=>{const c=(0,u.buildHeadlineItemRows)(i,t.swatch.size).map(a),l=Math.max(0,c.length-1)*o;return{width:Math.max(0,...c.map(d=>d.width)),height:So(c.map(d=>d.height))+l}})},Gc=(e,t,r,n)=>{let o=0,a=0;for(const i of e.segments)if(i.kind==="text"){const c=Hc(t,i.textRole);o+=r.measureText(i.text,(0,u.toFontSpec)(c,n)).width,a=Math.max(a,Dc(c))}else o+=i.size,a=Math.max(a,i.size);return{width:o+Math.max(0,e.segments.length-1)*e.gap,height:a}},Hc=(e,t)=>{switch(t){case"value":return e.number;case"caption":return e.caption;case"label":return e.label;case"trendPercentage":case"trendReference":return e.trend;default:return t}},Dc=e=>e.fontSize*(e.lineHeight??Ys),So=e=>e.reduce((t,r)=>t+r,0),Wc=(e,t)=>e?t:0,rt=(e,t,r)=>{if(r){const n=Number(e.size);return Number.isFinite(n)&&n>0?n:0}return Wc(e.color,t)},Vc=({textMeasurer:e,familyDefault:t,legendItemStyle:r,directLabelStyle:n,legendSwatchGap:o})=>a=>{const i=a.position==="top"||a.position==="bottom";if(a.display==="direct"){const A=(0,u.computeLineBoxHeight)(n);if(i)return A;const x=(0,u.toFontSpec)(n,t),S=a.items.map(b=>e.measureText(b.formattedLabel,x).width);return Math.max(...S)}const{item:c,swatch:l}=r,d=(0,u.computeLineBoxHeight)(c),h=(0,u.toFontSpec)(c,t),g=2*(c.paddingBlock+c.strokeWidth),m=2*(c.paddingInline+c.strokeWidth),f=a.aesthetics.includes("size");if(i){const A=f?Math.max(0,...a.items.map(x=>rt(x.visual,l.size,!0))):l.size;return Math.max(d,A)+g}const p=a.items.map(A=>{const x=e.measureText(A.formattedLabel,h).width,S=rt(A.visual,l.size,f);return S+(S>0?o:0)+x});return Math.max(...p)+m},Uc=({textMeasurer:e,tickLabelStyles:t,familyDefault:r})=>(n,o)=>e.measureText(n,(0,u.toFontSpec)(t(o),r)),Kc=Object.freeze({}),Yc=({textMeasurer:e,metrics:t,overrides:r=Kc})=>{const n=B(),o=R(po,n),a=R(ut,n),i=R(u.resolveDirectLabelStyle,n),c=R(u.resolveLegendItemStyle,n),l=R(er,n),d=R(xo,n),h=(0,v.useRef)(r);return h.current=r,(0,v.useMemo)(()=>{if(!e)return null;const g=t.fonts.familyDefault,m=n.graph().get("textScale"),f={textMeasurer:e,familyDefault:g,headlineRowGap:t.headlineRowGap,itemGap:tr(n).gap,headlineItemStyles:{small:(0,u.resolveHeadlineItemStyle)(n,"small"),medium:(0,u.resolveHeadlineItemStyle)(n,"medium"),large:(0,u.resolveHeadlineItemStyle)(n,"large")}},p=Bc({textMeasurer:e,tickLabelStyles:l,tickLineStyles:d,familyDefault:g}),A=Tc({axisLabelStyles:o}),x=Vc({textMeasurer:e,familyDefault:g,legendItemStyle:c,directLabelStyle:i,legendSwatchGap:t.legendSwatchGap}),S=Fc(f),b=Lc(f),j={measureText:(w,P)=>e.measureText(w,P),textScale:m};return{measureAxis:w=>{if(zc(w))return 0;const P=h.current.measureAxis;return P?P(w,j):p(w)},measureAxisLabel:w=>{const P=h.current.measureAxisLabel;return P?P(w,j):A(w)},measureLegend:w=>{if(Xc(w))return 0;const P=h.current.measureLegend;return P?P(w,j):x(w)},measureHeadline:(w,P,C)=>(h.current.measureHeadline??S)(w,P,C),measureHeadlineItemWidths:(w,P)=>(h.current.measureHeadlineItemWidths??b)(w,P),measureTickLabel:Uc({textMeasurer:e,tickLabelStyles:l,familyDefault:g}),measureDifferenceArrowLabel:Ic({textMeasurer:e,familyDefault:g}),measureDataLabel:Ao({textMeasurer:e,dataLabelStyles:a,familyDefault:g})}},[e,t,o,a,i,c,l,d,n])},Qc=({measurer:e,axes:t,numberFormat:r,parsingLocale:n,formattedLegends:o,containerSize:a,externalMeasurements:i,headline:c,formattingLocale:l,annotations:d,layers:h,coordSystem:g,overflowStrategy:m,panelBorder:f,padding:p,margins:A})=>{const x=B(),S=(0,v.useMemo)(()=>b=>(0,u.resolveDifferenceArrowAnnotationStyle)(x,b),[x]);return(0,v.useMemo)(()=>e?new u.LayoutCompiler(e).compile({axes:t,numberFormat:r,parsingLocale:n,formattedLegends:o,containerSize:a,externalMeasurements:i,headline:c,formattingLocale:l,annotations:d,resolveDifferenceArrowStyle:S,layers:h,readers:x,coordSystem:g,overflowStrategy:m,panelBorder:f,padding:p,margins:A}):null,[t,r,n,o,a,i,m,c,l,d,S,h,x,g,f,p,A,e])},zc=e=>!e.isVisible||e.ticks.length===0,Xc=e=>e.items.length===0,jo=()=>{const{formattingLocale:e}=D(),t=O(r=>r.config.parsingLocale);return e??t},Lr=.5,wo=(0,v.createContext)(new Map),Po=(0,v.createContext)(()=>{}),ko=(0,v.createContext)(new Set),qc=({children:e})=>{const[t,r]=(0,v.useState)(()=>new Map),[n]=(0,v.useState)(()=>new Set),o=(0,v.useRef)(new Map),a=(0,v.useCallback)((i,c,l)=>{const d=o.current.get(i)??new Set;if(l!==null){d.add(c),o.current.set(i,d),r(h=>_c(h,i,l));return}d.delete(c),!(d.size>0)&&(o.current.delete(i),r(h=>$c(h,i)))},[]);return(0,s.jsx)(Po.Provider,{value:a,children:(0,s.jsx)(ko.Provider,{value:n,children:(0,s.jsx)(wo.Provider,{value:t,children:e})})})},Eo=()=>(0,v.useContext)(wo),Jc=()=>(0,v.useContext)(Po),Ro=e=>{const t=Jc(),r=(0,v.useId)(),n=(0,v.useRef)(null);return(0,v.useEffect)(()=>{if(typeof ResizeObserver>"u")return;const o=n.current;if(o===null)return;const a=()=>t(e,r,{width:o.offsetWidth,height:o.offsetHeight});a();const i=new ResizeObserver(a);return i.observe(o),()=>{i.disconnect(),t(e,r,null)}},[e,r,t]),n},Zc=()=>(0,v.useContext)(ko),_c=(e,t,r)=>{const n=e.get(t);if(n!==void 0&&Math.abs(n.width-r.width)<Lr&&Math.abs(n.height-r.height)<Lr)return e;const o=new Map(e);return o.set(t,r),o},$c=(e,t)=>{if(!e.has(t))return e;const r=new Map(e);return r.delete(t),r},eu=(e,t)=>e!==null&&e.annotationId===t?e:null,tu=(e,t)=>e.annotationId===t.annotationId&&e.translation.x===t.translation.x&&e.translation.y===t.translation.y,ru=(e,t,r)=>e!==null&&e.annotationId===t&&e.endpoint===r?e:null,nu=(e,t)=>e.annotationId===t.annotationId&&e.endpoint===t.endpoint&&e.anchor.x===t.anchor.x&&e.anchor.y===t.anchor.y,ou=(e,t,r)=>e!==null&&e.annotationId===t&&e.endpoint===r?e:null,au=(e,t)=>e.annotationId===t.annotationId&&e.endpoint===t.endpoint&&(0,u.areAnchorsEqual)(e.point.anchor,t.point.anchor),su=(e,t)=>e!==null&&e.annotationId===t?e:null,iu=(e,t)=>e.annotationId===t.annotationId&&e.region.x===t.region.x&&e.region.y===t.region.y&&e.region.width===t.region.width&&e.region.height===t.region.height,lu=(e,t)=>e!==null&&e.annotationId===t?e:null,cu=(e,t)=>e.annotationId===t.annotationId&&e.at.x===t.at.x&&e.width===t.width&&e.shift===t.shift,Pe=({standingInteraction:e},t)=>e!==null&&fe(e,t)?e:null,uu=(e,t)=>{if(e===null)return!1;switch(t.kind){case"difference-arrow-endpoint-drag":return fe(e,t.kind)&&au(e,t);case"arrow-endpoint-drag":return fe(e,t.kind)&&nu(e,t);case"move-drag":return fe(e,t.kind)&&tu(e,t);case"shape-resize-drag":return fe(e,t.kind)&&iu(e,t);case"text-resize-drag":return fe(e,t.kind)&&cu(e,t);case"chrome-popup":return fe(e,t.kind);case"menu":return!1}},fe=(e,t)=>e.kind===t,du=({isMenuTrigger:e,stamped:t,observations:r})=>e?{kind:"menu-trigger"}:t!==null&&t.kind!=="grid"?t:r!==null?{kind:"observations",observations:r}:t,hu=(e,t)=>{if(e===t)return!0;if(e===null||t===null)return!1;if(e.kind==="annotation"&&t.kind==="annotation")return(0,u.areEditTargetsEqual)(e.target,t.target);if(e.kind==="legend"&&t.kind==="legend")return e.part.legendIndex===t.part.legendIndex&&e.part.itemIndex===t.part.itemIndex;if(e.kind==="axis"&&t.kind==="axis")return(0,u.areEditTargetsEqual)(e.target,t.target)&&e.part?.tickIndex===t.part?.tickIndex;if(e.kind==="grid"&&t.kind==="grid")return(0,u.areEditTargetsEqual)(e.target,t.target);if(e.kind==="observations"&&t.kind==="observations"){const r=e.observations,n=t.observations;return r.layerId===n.layerId&&r.observationIndex===n.observationIndex&&r.target.scope===n.target.scope&&r.isOnObservation===n.isOnObservation}return e.kind==="menu-trigger"&&t.kind==="menu-trigger"},rr=e=>{const t=e.editTargetUnderPointer;return t?.kind==="annotation"?t.target.id:null},gu=e=>{const t=e.editTargetUnderPointer;return t!==null&&t.kind!=="menu-trigger"},Co=()=>(0,Lt.createStore)(e=>({menuTrigger:null,editTargetUnderPointer:null,standingInteraction:null,selectedOutline:null,caret:null,setMenuTrigger:t=>e(r=>(0,u.areEditMenuTriggersEqual)(r.menuTrigger,t)?r:{menuTrigger:t}),setEditTargetUnderPointer:t=>e(r=>hu(r.editTargetUnderPointer,t)?r:{editTargetUnderPointer:t}),claimInteraction:t=>e(r=>uu(r.standingInteraction,t)?r:{standingInteraction:t}),releaseInteraction:t=>e(r=>r.standingInteraction?.kind===t?{standingInteraction:null}:r),setSelectedOutline:t=>e(r=>vu(r.selectedOutline,t)?r:{selectedOutline:t}),setCaret:t=>e(r=>(r.caret?.annotationId??null)===t?r:{caret:t===null?null:{annotationId:t,editor:null}}),setCaretEditor:t=>e(r=>r.caret===null?r:{caret:{...r.caret,editor:t}})})),vu=(e,t)=>e===t?!0:e===null||t===null?!1:e.target.key===t.target.key&&e.frameScale===t.frameScale&&Rt(e.frame,t.frame),nr=(0,v.createContext)(null),fu=Co(),mu=({children:e})=>{const[t]=(0,v.useState)(()=>Co());return(0,s.jsx)(nr.Provider,{value:t,children:e})},pu=()=>{const e=(0,v.useContext)(nr);if(e===null)throw new Error("useEditorStore must be used inside an <EditorProvider>.");return e};function le(e){return(0,xe.useStore)((0,v.useContext)(nr)??fu,e)}var Mo=(0,v.createContext)(null),xu=({panelRect:e,children:t})=>{const r=yu(e);return(0,s.jsx)(Mo.Provider,{value:r,children:t})},Bo=()=>{const e=(0,v.useContext)(Mo);if(e===null)throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");return e},Nr=(e,t,r)=>t.isStrokeAuthored?t.stroke:(0,u.resolveArrowColor)(e.start,e.end,{start:r(e.start),end:r(e.end)})??t.stroke,yu=e=>{const{formattingLocale:t}=D(),r=ce(),{fonts:n}=ye(),o=le(x=>Pe(x,"difference-arrow-endpoint-drag")),a=Ka(),i=B(),{differenceArrows:c,mainAxis:l,parsingLocale:d}=O((0,Y.useShallow)(x=>({differenceArrows:x.annotations.differenceArrows,mainAxis:x.coordSystem.type==="cartesian"?x.coordSystem.mainAxis:"x",parsingLocale:x.config.parsingLocale}))),h=t??d,{width:g,height:m}=e,f=(0,v.useMemo)(()=>({mainAxis:l,panelWidth:g,panelHeight:m,locale:h}),[l,g,m,h]),p=(0,v.useMemo)(()=>Au(r,n.familyDefault),[r,n.familyDefault]),A=(0,v.useMemo)(()=>c.map(x=>{const S=(0,u.resolveDifferenceArrowAnnotationStyle)(i,x.id),b=Fr(x,S,f,p);return{...b,arrow:x,style:S,color:Nr(x,S,a),committedArrow:x,committedLabelBox:b.labelBox,committedLabelText:b.labelText,isDragged:!1,hasComparableEndpoints:(0,u.areEndpointsComparable)(x.start,x.end)}}),[c,f,p,a,i]);return(0,v.useMemo)(()=>o===null?A:A.map(x=>{if(x.id!==o.annotationId)return x;const S=bu(x.committedArrow,o);return{...Fr(S,x.style,f,p),style:x.style,color:Nr(S,x.style,a),arrow:S,committedArrow:x.committedArrow,committedLabelBox:x.committedLabelBox,committedLabelText:x.committedLabelText,isDragged:!0,hasComparableEndpoints:(0,u.areEndpointsComparable)(S.start,S.end)}}),[A,o,f,p,a])},Fr=(e,t,r,n)=>{const o=(0,u.computeDifferenceArrow)({arrow:e,style:t,...r});return{...o,labelBox:(0,u.getDifferenceArrowLabelBox)({labelPosition:o.labelPosition,measuredTextWidth:n(o.labelText,t.label),label:t.label})}},Au=(e,t)=>{const r=new Map;return(n,o)=>{const a=(0,u.toFontSpec)(o,t),i=[a.family,a.size,a.weight,a.style,a.letterSpacing,a.textTransform,n].join("|"),c=r.get(i);if(c!==void 0)return c;const{width:l}=e.measureText(n,a);return r.set(i,l),l}},bu=(e,t)=>({...e,start:t.endpoint==="start"?t.point:e.start,end:t.endpoint==="end"?t.point:e.end}),Su="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMpmiIr/KHIomgUYyPiBofkRjjE+MjEk3RQNIYTdUotKkoaql0Wyympbtl2XbLtrW71n3v3ntnrn+c38n98cvcOzP3tfcud5LJ5u7Ozpz5nt/7nN/3QncfAVBQn18LfBd4GJgFYvm5B/iW/N0fBfn/VX9ogF4K3A0sAhV1xubzIrBFrk+6z6oDyEvCmcBXgTkFRgkoA5E6y/J7f80s8GXg2Uoyw9UCUGhm/wPAYQNQJFJkJUmDpgEbkfusCnW0dujNwM4aAEVGak4aaYvVdRqwHcAbexkwDdCLgZ8mqJgFaBo4BowD/wQOAbuBCSNhsVHJGPgJ8KJesl+hshnPBD4LTKqXLCUANAPsF0CKRvWm5W+Pi6RZwErqXqeA24DBhLF0rZptkhfUUhQbO7QEHBUJmjZqFhl7NQ/sEsCWjf2KjTo+AlzXbeoYAAPq80Zgmxp0McEOxQLOiNiiSsqpATsK3A+MJUhXZCTyd8Cr1dgGVgowLUEvAL6tZrtcww7NAAeAg3VipjTAisAR4CEDtLZfZRV/fQdYbya34+6+ANwiElJRamABmhdVP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2uWzQt5HpVWNTLWA0rXrHzaMZnAm5J2LovK7DdEXUmsiaclcj8zbyf84+amscxK3EagLK/Be6hyouQlzhrHUYKcSOHhrIikbmi0N3lrAupHzINbBVSgCmfg2lb/2CCV0bxUVZ803FJJduhBsXlNMSNeZwYZKUq142oQjUqYv997eSp74p0JXJlZ7jeDYxCqZYdKhhbuw4Z2pOHYcQ1V1gxLbXRUim/TTXSo+3v5ZPUTRlqz0q0VxQ4dMgQ5SXSRC1IwPLfVdLdX1mF4Lkr5Ybfii8rLixlLcvlgg2o2JaFCLXevpejXEnm3fLOcR/rTNUizYsU2OCxiP9+EhOUByIcqRxUYtSi595o2/7a00nqwblHiW4t25Jh4mZM5wcpjhxZkUg4qd2/tUKzA/LhyEm1fJvM3v5ynklIVE8gjYgkrdhp67EaZfjTj4XEce8eJFDtUxNFLnrcStNsFBdpNhpRYq2OkOOw8RdtCE7y+3psNSVwUp9ih+2gduU1L2Fmfh/t2jIUUNrJJkbBhxQIU5+Dy3SdSVEpx949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=",ju=({className:e})=>(0,s.jsx)("img",{src:Su,alt:"","aria-hidden":"true",className:e,draggable:!1}),wu="https://graphy.app/?utm_source=chart-mark&utm_medium=embed",Pu="Made with Graphy — open graphy.app";var ku="vultop0";var Eu="vultop2",Ru="vultop3",Cu="vultop4",Mu="vultop5",Bu="vultop6",Tu="vultop7",Iu=e=>{const t=Ou(e.trim());if(t===null)return"light";const r=Lu(t);return r<=.22?"dark":r<=.65?"mid":"light"},Ou=e=>{if(!e.startsWith("#"))return null;const t=e.slice(1);if(t.length===3){const r=t[0],n=t[1],o=t[2];return r===void 0||n===void 0||o===void 0?null:{red:Number.parseInt(r+r,16),green:Number.parseInt(n+n,16),blue:Number.parseInt(o+o,16)}}return t.length===6||t.length===8?{red:Number.parseInt(t.slice(0,2),16),green:Number.parseInt(t.slice(2,4),16),blue:Number.parseInt(t.slice(4,6),16)}:null},Lu=({red:e,green:t,blue:r})=>{const n=o=>{const a=o/255;return a<=.03928?a/12.92:((a+.055)/1.055)**2.4};return .2126*n(e)+.7152*n(t)+.0722*n(r)},To=(e,t,r="full")=>!e||t.width<120||t.height<80?"hidden":t.width<200||r==="mini"?"mini":"full",or=({visual:e,placement:t})=>{const r=Iu(B().graph().get("fill"));return(0,s.jsxs)("a",{className:(0,W.default)(ku,e==="mini"&&"vultop1",t==="footer"?Bu:Tu),href:wu,target:"_blank",rel:"noopener noreferrer","aria-label":Pu,"data-visual":e,"data-zone":r,children:[(0,s.jsx)("span",{className:Eu,children:(0,s.jsx)(ju,{className:Ru})}),(0,s.jsxs)("span",{className:Cu,children:[(0,s.jsx)("span",{children:"Made with"}),(0,s.jsx)("span",{className:Mu,children:"Graphy"})]})]})},Io=(0,v.createContext)({Title:null,Caption:null,TextAnnotation:null}),Nu=({editors:e,children:t})=>(0,s.jsx)(Io.Provider,{value:e,children:t}),ar=()=>(0,v.useContext)(Io),Gr="_4dlrid0",Fu="xfz7dq0";var Gu="xfz7dq2",Hu="xfz7dq3",Du="xfz7dq4",Wu="xfz7dq5",Oo=({ref:e,footerRect:t,mode:r=ne.readonly,caption:n,isCaptionVisible:o,source:a,isSourceVisible:i,captionStyle:c,sourceStyle:l,brandMark:d})=>{const{Caption:h}=ar(),g=ue[qt(r)].inlineTextEditing?h:null,m=o&&(g!==null||n!==null),f=i&&a!==null&&Yu(a),p=d!=="hidden";return!m&&!f&&!p?null:(0,s.jsxs)("div",{ref:e,className:Fu,style:{left:t.x,top:t.y,width:t.width},children:[m?g?(0,s.jsx)(g,{caption:n,captionStyle:c}):(0,s.jsx)(Vu,{caption:n,captionStyle:c}):null,(f||p)&&(0,s.jsxs)("div",{className:"xfz7dq1",children:[f&&(0,s.jsx)(Uu,{source:a,sourceStyle:l}),d!=="hidden"?(0,s.jsx)(or,{visual:d,placement:"footer"}):null]})]})},Vu=({caption:e,captionStyle:t})=>e===null?null:typeof e=="string"?(0,s.jsx)("p",{className:Gr,style:G(t),children:e}):(0,s.jsx)("div",{className:Gr,style:G(t),children:(0,s.jsx)(ke,{content:e})}),Uu=({source:e,sourceStyle:t})=>{const r=(0,u.isSafeUrl)(e.url)?e.url:void 0,n=e.label??(r!==void 0?Ku(r):"");return n===""&&r===void 0?null:(0,s.jsxs)("span",{className:Gu,style:G(t.label),children:[(0,s.jsx)("span",{className:Du,children:"Source:"}),r!==void 0?(0,s.jsx)("a",{className:Hu,href:r,target:"_blank",rel:"noopener noreferrer",style:G(t.link),children:n}):(0,s.jsx)("span",{className:Wu,children:n})]})},Ku=e=>{try{return new URL(e).hostname}catch{return e}},Yu=e=>e.label!==void 0&&e.label!==""||e.url!==void 0&&e.url!==""&&(0,u.isSafeUrl)(e.url),Qu="_1k4qtbg0";var zu=22,Lo=({ref:e,headerRect:t,mode:r=ne.readonly,title:n,isTitleVisible:o,subtitle:a,isSubtitleVisible:i,headingStyle:c,subtitleStyle:l,brandMark:d})=>{const{Title:h}=ar(),g=ue[qt(r)].inlineTextEditing?h:null,m=g!==null,f=o&&(m||n!==null),p=i&&(m||a!==null),A=d!=="hidden";return!f&&!p&&!A?null:(0,s.jsxs)("div",{ref:e,className:(0,W.default)(Qu,A&&"_1k4qtbg1"),style:{left:t.x,top:t.y,width:t.width,...A&&!f&&!p?{minHeight:zu}:{}},children:[g?(0,s.jsx)(g,{title:n,isTitleVisible:o,isSubtitleVisible:i,subtitle:a,headingStyle:c,subtitleStyle:l},[o?"title":"",i?"subtitle":""].join("-")):(0,s.jsx)(Xu,{title:n,isTitleVisible:o,isSubtitleVisible:i,subtitle:a,headingStyle:c,subtitleStyle:l}),d!=="hidden"?(0,s.jsx)(or,{visual:d,placement:"header"}):null]})},Xu=({title:e,isTitleVisible:t,isSubtitleVisible:r,subtitle:n,headingStyle:o,subtitleStyle:a})=>{const i=t&&e!==null,c=r&&n!==null;return(0,s.jsxs)(s.Fragment,{children:[i&&(typeof e=="string"?(0,s.jsx)("h1",{className:"_4dlrid0",style:G(o),children:e}):(0,s.jsx)("div",{className:"_4dlrid0",style:G(o),children:(0,s.jsx)(ke,{content:e})})),c&&(typeof n=="string"?(0,s.jsx)("p",{className:"_4dlrid0",style:G(a),children:n}):(0,s.jsx)("div",{className:"_4dlrid0",style:G(a),children:(0,s.jsx)(ke,{content:n})}))]})},qu="_1u9qprb0",Ju="_1u9qprb1",Zu=Ha({group:()=>ed,item:()=>No,trend:()=>$u,value:()=>_u}),_u="_9aen060",$u="_9aen061",ed="_9aen062",No="_9aen063",td={xxs:8,xs:12,sm:16,md:20,lg:24,xl:36},rd={primary:"asohov1 asohov0",secondary:"asohov2 asohov0"},sr=({children:e,title:t,variant:r="primary",size:n="sm",...o})=>{const a=(0,v.useId)(),i=td[n];return(0,s.jsxs)("svg",{className:rd[r],"aria-labelledby":t?a:void 0,height:i,width:i,fill:"none",viewBox:"0 0 24 24",role:"img",...o,children:[t&&(0,s.jsx)("title",{id:a,children:t}),e]})},nd=e=>(0,s.jsx)(sr,{...e,children:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"m5 12 7-7 7 7"}),(0,s.jsx)("path",{d:"M12 19V5"})]})}),Fo=e=>(0,s.jsx)(sr,{...e,children:(0,s.jsx)("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M5 12h14"})})}),od="n7clvo0",ad="n7clvo1",sd="n7clvo2",id="n7clvo3";var ld=({segment:e,itemStyle:t})=>{if(e.kind==="swatch")return(0,s.jsx)(cd,{swatch:e.swatch,size:e.size});if(e.kind==="trendArrow"){const o=Go(t,e.direction);return(0,s.jsx)("div",{className:(0,W.clsx)(id,e.direction==="down"&&"n7clvo4"),style:{color:o,backgroundColor:e.direction==="flat"?V(y.vars.textPrimary,.1):V(o,.2)},children:e.direction==="flat"?(0,s.jsx)(Fo,{size:"xs",title:""}):(0,s.jsx)(nd,{size:"xs",title:""})})}const{className:r,style:n}=ud(e,t);return(0,s.jsx)("span",{className:r,style:n,children:e.text})},cd=({swatch:e,size:t})=>{const r=oe(),n=at(e.layerId,e.value,t);return(0,s.jsx)(Ve,{shape:r(e.geom,"cartesian")?.swatchShape??"square",color:e.color,surface:"headline",width:t,height:t,alpha:n.alpha,cornerRadius:n.cornerRadius})},ud=(e,t)=>{switch(e.textRole){case"value":return{style:Se(t.number)};case"caption":return{className:od,style:Se(t.caption)};case"label":return{className:sd,style:Se(t.label)};case"trendPercentage":return{style:Se({...t.trend,textColor:Go(t,e.trendDirection??"up")})};case"trendReference":return{className:ad,style:Se({...t.trend,textColor:void 0})};default:return e.textRole}},Go=(e,t)=>{switch(t){case"up":return e.trendUp.textColor;case"down":return e.trendDown.textColor;case"flat":return e.trendFlat.textColor;default:return t}},dd=({item:e,itemStyle:t})=>(0,s.jsx)("div",{className:No,children:(0,u.buildHeadlineItemRows)(e,t.swatch.size).map(r=>(0,s.jsx)(hd,{row:r,itemStyle:t},r.role))}),hd=({row:e,itemStyle:t})=>{const r=e.role==="trend";return(0,s.jsx)("div",{className:Zu[e.role],"data-testid":r?"headline-trend":void 0,"data-direction":r?gd(e):void 0,role:r?"img":void 0,"aria-label":r?e.ariaLabel:void 0,children:e.segments.map((n,o)=>(0,s.jsx)(ld,{segment:n,itemStyle:t},o))})},gd=e=>{const t=e.segments.find(r=>r.kind==="trendArrow");return t?.kind==="trendArrow"?t.direction:void 0},vd=({headline:e,rect:t,resolvedSize:r,visibleItemCount:n,isInDonutHole:o=!1})=>{const a=B(),i=R(tr,a),c=R(u.resolveHeadlineItemStyle,a,r),l={left:t.x,top:t.y,width:t.width,height:t.height};if(e.kind==="grandTotal"){const d=(0,u.resolveHeadlineNumberStyle)(c,o);return(0,s.jsx)("div",{className:Ju,style:l,children:(0,s.jsx)("span",{style:Se(d),children:e.value})})}return(0,s.jsx)("div",{className:qu,style:{...l,gap:i.gap},children:e.items.slice(0,n).map((d,h)=>(0,s.jsx)(dd,{item:d,itemStyle:c},`${d.label}-${h}`))})},Ho="data-legend-index",Do="data-legend-item-index",Wo=({legendIndex:e,itemIndex:t})=>({[Ho]:String(e),[Do]:String(t)}),Vo=e=>{const t=Bt(e,Ho),r=Bt(e,Do);return t===null||r===null?null:{legendIndex:t,itemIndex:r}},Bt=(e,t)=>{const r=e.getAttribute(t);if(r===null||!/^(0|[1-9]\d*)$/.test(r))return null;const n=Number(r);return Number.isSafeInteger(n)?n:null},ve="data-edit-kind",Uo="data-edit-id",Ge="data-edit-axis",Ko="data-edit-tick-index",Yo="data-legend-overflow-control",fd=`[${Yo}]`,md="observations",pd=`[${ve}]`,Ue=e=>({[ve]:e.kind,[Uo]:e.id}),dt=(e,t)=>({[ve]:"axis",[Ge]:e,...t===void 0?{}:{[Ko]:String(t)}}),ht=e=>({[ve]:"legend",...Wo(e)}),ir=e=>({[ve]:"grid",[Ge]:e}),xd=(e,t)=>{for(const r of e){const n=r.closest(pd);if(n===null||!t.contains(n))continue;const o=Ad(n);if(o!==null)return o;if(n!==r)return null}return null},yd=()=>({[ve]:md}),Ad=e=>{const t=e.getAttribute(ve);switch(t){case"annotation":{const r=e.getAttribute(Uo);return r===null||r===""?null:{kind:t,target:{kind:t,id:r}}}case"axis":{const r=e.getAttribute(Ge);if(!(0,u.isPositionScale)(r))return null;if(!e.hasAttribute("data-edit-tick-index"))return{kind:t,target:{kind:t,axis:r},part:null};const n=Bt(e,Ko);return n===null?null:{kind:t,target:{kind:t,axis:r},part:{tickIndex:n}}}case"legend":{const r=Vo(e);return r===null?null:{kind:t,target:{kind:t},part:r}}case"grid":{const r=e.getAttribute(Ge);return(0,u.isPositionScale)(r)?{kind:t,target:{kind:t,axis:(0,u.getAestheticFromScaleAestheticKey)(r)}}:null}default:return null}},Qo=(0,v.createContext)(ne.readonly);function Me(){return(0,v.useContext)(Qo)}var de=()=>ue[Me()].guidePress,bd=(e,t)=>e.isTextColorAuthored?e.textColor:t??e.textColor,Sd="_1oj6yix0";var jd="_1oj6yix2";var wd=8,Pd=16,kd=2,Ed=({indexedLegends:e,containerRect:t})=>{const r=R(u.resolveDirectLabelStyle,B()),n=(0,u.computeLineBoxHeight)(r),{placements:o,hasOverlap:a}=Rd(e,t,n),i=de(),c=G(r);if(o.length===0)return null;const l=a?Pd:wd,d=l-kd,h=(0,u.toStrokeDasharray)(r.dashArray,r.strokeWidth);return(0,s.jsxs)("div",{className:Sd,children:[a&&(0,s.jsx)("svg",{className:"_1oj6yix1",width:t.width,height:t.height,children:o.map(g=>(0,s.jsx)(Cd,{anchorY:g.anchorY,labelY:g.y,endX:d,color:g.payload.color,strokeWidth:r.strokeWidth,dashArray:h},g.payload.key))}),o.map(g=>(0,s.jsx)("span",{className:(0,W.clsx)(jd,i&&"_1oj6yix3"),style:{...c,left:l,top:g.y,color:bd(r,g.payload.color)},...i?ht(g.payload.address):Wo(g.payload.address),children:g.payload.label},g.payload.key))]})},Rd=(e,t,r)=>(0,v.useMemo)(()=>{const n=[];for(const{legend:o,legendIndex:a}of e)o.items.forEach((i,c)=>{if(i.normalizedY===null)return;const l=typeof i.visual.color=="string"?i.visual.color:void 0;n.push({normalizedY:i.normalizedY,payload:{key:String(n.length),label:i.formattedLabel,color:l,address:{legendIndex:a,itemIndex:c}}})});return n.length===0||t.height<=0?{placements:[],hasOverlap:!1}:(0,u.computeDirectLabelsLayout)({items:n,containerHeight:t.height,labelHeight:r})},[e,t.height,r]),Cd=({anchorY:e,labelY:t,endX:r,color:n,strokeWidth:o,dashArray:a})=>{const i=r/2;return(0,s.jsx)("path",{d:`M0,${e} C${i},${e} ${i},${t} ${r},${t}`,fill:"none",stroke:n??"currentColor",strokeWidth:o,strokeDasharray:a})},Md="_6a636s0",zo=e=>({background:e.fill,borderRadius:e.cornerRadius,...Jo(e.strokeWidth,e.stroke)}),Xo=e=>({...G(e),...zo(e),paddingInline:e.paddingInline,paddingBlock:e.paddingBlock}),qo=e=>e.fill!==void 0||e.strokeWidth>0,Bd=(e,t)=>({background:e.fill,borderRadius:e.cornerRadius,paddingInline:e.paddingInline,paddingBlock:e.paddingBlock,boxShadow:Gt(e.shadow),...Jo(e.strokeWidth,e.stroke),...G(t)}),Jo=(e,t)=>e>0&&t!==void 0?{border:`${e}px solid ${t}`}:{},Td="_1kjk02r0",Id={1:"_1kjk02r1",2:"_1kjk02r2"},Od={1:"_1kjk02r3",2:"_1kjk02r4"};var Ld={1:"_1kjk02r6",2:"_1kjk02r7"},Nd={1:"_1kjk02r8",2:"_1kjk02r9"},Fd="_1kjk02ra",Gd="_1kjk02rb";var Hd="_1dw9dgx0",yt="\0",Dd=(e,t)=>{const r=[];for(const{legend:n,legendIndex:o}of e){const a=n.aesthetics.includes("size");n.items.forEach((i,c)=>{if(a){const g=Number(i.visual.size);if(!Number.isFinite(g)||g<=0)return}const l=i.visual.color??"",d=a?`${yt}${Number(i.visual.size)}`:"",h=i.visual.lineType;r.push({key:`${o}${yt}${String(i.value)}${yt}${l}${d}`,address:{legendIndex:o,itemIndex:c},formattedLabel:i.formattedLabel,visual:i.visual,swatchShape:t(i.geom),isBubble:a,primaryLineType:h,layerId:i.layerId,groupValue:i.value})})}return r},Zo=({pill:e})=>e.isBubble?(0,s.jsx)(Ud,{pill:e}):(0,s.jsx)(Vd,{pill:e}),Wd=({color:e,lineType:t,shape:r,label:n,layerId:o,groupValue:a})=>{const{swatch:i}=R(u.resolveLegendItemStyle,B()),c=at(o,a,i.size);return e?(0,s.jsx)(Ve,{shape:r,color:e,surface:"legend",label:n,lineType:t,width:i.size,height:i.size,strokeWidth:i.strokeWidth,alpha:c.alpha,cornerRadius:c.cornerRadius}):null},Vd=({pill:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Wd,{color:e.visual.color,lineType:e.primaryLineType,shape:e.swatchShape,label:e.formattedLabel,layerId:e.layerId,groupValue:e.groupValue}),(0,s.jsx)("span",{children:e.formattedLabel})]}),Ud=({pill:e})=>{const t=Number(e.visual.size),r=at(e.layerId,e.groupValue,t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Hd,style:{width:t,height:t,backgroundColor:e.visual.color,opacity:r.alpha}}),(0,s.jsx)("span",{children:e.formattedLabel})]})},Hr={[Yo]:""},Kd=({hiddenPills:e,placement:t})=>{const r=Jt(),[n,o]=(0,v.useState)(!1),a=B(),i=R(u.resolveLegendItemStyle,a),c=R(yo,a),l=de(),d=Xo(i.item),h=Yd(e.length,i.item),g=h===null?void 0:zo(i.item),{refs:m,floatingStyles:f}=(0,X.useFloating)({open:n,placement:t,middleware:[(0,X.offset)(4),(0,X.flip)(),(0,X.shift)({padding:8})]});(0,v.useEffect)(()=>{if(!n)return;const x=b=>{const j=b.target;if(!j)return;const w=m.reference.current,P=m.floating.current;w instanceof Element&&w.contains(j)||P instanceof Element&&P.contains(j)||o(!1)},S=b=>{b.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",x),document.addEventListener("keydown",S),()=>{document.removeEventListener("pointerdown",x),document.removeEventListener("keydown",S)}},[n,m.floating,m.reference]);const p=t==="left"||t==="right",A=h===null?[]:Array.from({length:h},(x,S)=>h-S);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{ref:m.setReference,className:(0,W.clsx)(Td,h!==null&&p&&Od[h],h!==null&&!p&&Id[h]),...Hr,children:[h!==null&&A.map(x=>(0,s.jsx)("span",{className:(0,W.clsx)("_1kjk02r5",p?Nd[h]:Ld[h]),style:{...g,...Qd(x,p)},"aria-hidden":!0},x)),(0,s.jsx)("button",{type:"button",className:Fd,style:d,onClick:()=>o(x=>!x),"aria-haspopup":"dialog","aria-expanded":n,"aria-label":`Show ${e.length} hidden legend ${e.length===1?"item":"items"}`,children:(0,s.jsxs)("span",{className:Gd,children:["+",e.length]})})]}),n&&(0,s.jsx)("div",{ref:m.setFloating,role:"dialog","aria-label":r("graph.legend.hiddenItems"),className:"_1kjk02rc",style:{...f,...Bd(c.popover,i.item)},...Hr,children:(0,s.jsx)("ul",{className:"_1kjk02rd",children:e.map(x=>(0,s.jsx)("li",{className:(0,W.clsx)("_1kjk02re",l&&"_1kjk02rf"),...l?ht(x.address):void 0,children:(0,s.jsx)(Zo,{pill:x})},x.key))})})]})},Yd=(e,t)=>{if(!qo(t))return null;const r=Math.min(e-1,2);return r===1?1:r===2?2:null},Qd=(e,t)=>{const r=-e*4;return{transform:t?`translateY(${r}px)`:`translateX(${r}px)`}},zd="_1cecisi0",Xd="_1cecisi1",qd="_1cecisi2",Jd={start:"_1cecisi3",center:"_1cecisi4",end:"_1cecisi5"},Zd={right:"_1cecisi6",left:"_1cecisi7"},_d="_1cecisi8";var $d=({edge:e,indexedLegends:t,containerWidth:r,containerHeight:n})=>{const o=ce(),a=ye(),i=B(),c=R(yo,i),l=R(u.resolveLegendItemStyle,i),d=oe(),h=O(P=>P.coordSystem.type),g=de(),m=(0,v.useMemo)(()=>Dd(t,P=>d(P,h)?.swatchShape??"square"),[t,d,h]),f=e==="left"||e==="right",p=f?n:r,A=t[0]?.legend.align??"start",x=(0,v.useMemo)(()=>{if(m.length===0)return{visibleCount:0,hasOverflow:!1};if(p<=0)return{visibleCount:m.length,hasOverflow:!1};const P=(0,u.toFontSpec)(l.item,a.fonts.familyDefault),C=(0,u.computeLineBoxHeight)(l.item),M=2*(l.item.paddingInline+l.item.strokeWidth),k=2*(l.item.paddingBlock+l.item.strokeWidth),T=U=>f?eh(U,C,l.swatch.size,k):Dr({label:U.formattedLabel,swatchInlineSize:th(U,l.swatch.size),textMeasurer:o,font:P,swatchGap:a.legendSwatchGap,horizontalChrome:M}),L=m.map(T),$=(f?C+k:Dr({label:`+${m.length}`,swatchInlineSize:0,textMeasurer:o,font:P,swatchGap:a.legendSwatchGap,horizontalChrome:M}))+(qo(l.item)?8:0);return nh({pillSizes:L,overflowPillSize:$,containerSize:p,gap:c.gap})},[m,p,f,o,a,c,l]);if(m.length===0)return null;const S=m.slice(0,x.visibleCount),b=m.slice(x.visibleCount),j=x.hasOverflow&&b.length>0,w=Xo(l.item);return(0,s.jsxs)("div",{className:(0,W.clsx)(Jd[A],zd,{[qd]:f,[Xd]:!f,[Zd[e==="left"?"left":"right"]]:f}),style:{gap:c.gap},children:[S.map(P=>(0,s.jsx)("div",{className:(0,W.clsx)(_d,g&&"_1cecisi9"),style:w,...g?ht(P.address):void 0,children:(0,s.jsx)(Zo,{pill:P})},P.key)),j&&(0,s.jsx)(Kd,{hiddenPills:b,placement:oh(e)})]})},Dr=({label:e,swatchInlineSize:t,textMeasurer:r,font:n,swatchGap:o,horizontalChrome:a})=>{const i=r.measureText(e,n).width;return t+(t>0?o:0)+i+a},eh=(e,t,r,n)=>{const o=rh(e,r);return Math.max(t,o)+n},th=(e,t)=>rt(e.visual,t,e.isBubble),rh=(e,t)=>e.isBubble?rt(e.visual,t,!0):t,nh=({pillSizes:e,overflowPillSize:t,containerSize:r,gap:n})=>{if(e.length===0)return{visibleCount:0,hasOverflow:!1};let o=0;for(let c=0;c<e.length;c+=1)c>0&&(o+=n),o+=e[c]??0;if(o<=r)return{visibleCount:e.length,hasOverflow:!1};let a=0,i=0;for(const c of e){const l=a+(i>0?n:0)+c;if(l+n+t>r)break;a=l,i+=1}return{visibleCount:i,hasOverflow:!0}},oh=e=>{switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}},ah=(0,v.memo)(function({formattedLegends:t,rects:r}){const n=(0,v.useMemo)(()=>{const o=new Map;return t.forEach((a,i)=>{let c=o.get(a.position);c||(c={pill:[],direct:[]},o.set(a.position,c));const l={legend:a,legendIndex:i};a.display==="pill"?c.pill.push(l):c.direct.push(l)}),o},[t]);return(0,s.jsx)(s.Fragment,{children:Array.from(n,([o,a])=>{const i=r[o];return i===void 0?null:(0,s.jsxs)("div",{className:Md,style:{left:i.x,top:i.y,width:i.width,height:i.height},children:[(0,s.jsx)($d,{edge:o,indexedLegends:a.pill,containerWidth:i.width,containerHeight:i.height}),(0,s.jsx)(Ed,{indexedLegends:a.direct,containerRect:i})]},o)})})}),_o=(e,t,r)=>{if(e.type==="cartesian")return(0,u.getHoverGuideLineProps)(e,t);const n=De(r),o=K(t.x,e.innerRadius,n),a=K(t.x,1,n);return{x1:o.x,y1:o.y,x2:a.x,y2:a.y}},sh=({layers:e,primaryLayerId:t,coordSystem:r,resolveRenderer:n})=>{const o=e.find(i=>i.id===t);if(!o)return null;const a=n(o.geom,r.type);return a?a.guideMode??null:null},ih=({panelRect:e})=>{const{coordSystem:t,layers:r,scales:n}=O((0,Y.useShallow)(l=>({coordSystem:l.coordSystem,layers:l.layers,scales:l.scales}))),o=we(l=>l.hover.primary),a=oe(),i=R(dh,B());if(!ue[Me()].hoverPaint||r.length===0||o===null||!o.anchored)return null;const c=sh({layers:r,primaryLayerId:o.layerId,coordSystem:t,resolveRenderer:a});return c===null?null:c==="crosshair"?(0,s.jsx)(lh,{coordSystem:t,primary:o,panelRect:e,guide:i}):t.type==="polar"?(0,s.jsx)(uh,{coordSystem:t,primary:o,panelRect:e,guide:i}):(0,s.jsx)(ch,{coordSystem:t,scales:n,primary:o,panelRect:e,guide:i})},lh=({coordSystem:e,primary:t,panelRect:r,guide:n})=>{const o=_o(e,t,r);return(0,s.jsx)(lr,{panelRect:r,children:(0,s.jsx)("line",{...o,stroke:n.stroke,strokeWidth:1,strokeDasharray:"4 3",strokeLinecap:"round","data-testid":"hover-guide-line"})})},ch=({coordSystem:e,scales:t,primary:r,panelRect:n,guide:o})=>{const a=(0,u.getHoverGuideRectProps)(e,t,r);return a===null?null:(0,s.jsx)(lr,{panelRect:n,children:(0,s.jsx)("rect",{...a,fill:o.fill,"data-testid":"hover-guide-rect"})})},uh=({coordSystem:e,primary:t,panelRect:r,guide:n})=>{const o=(0,u.getPolarHoverGuideArcProps)(e,t);if(o===null)return null;const a=(0,u.buildPolarBarArcPath)(o);return a?(0,s.jsx)(lr,{panelRect:r,children:(0,s.jsx)("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",style:{overflow:"visible"},children:(0,s.jsx)("path",{d:a,fill:n.fill,"data-testid":"hover-guide-arc"})})}):null},lr=({panelRect:e,children:t})=>(0,s.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,style:{overflow:"visible",pointerEvents:"none"},"data-testid":"hover-guide",children:t}),dh=e=>e.hoverGuide().resolve(),hh=(e,t,r)=>{for(const n of Object.values(na)){const o=n(e,t,r);if(o!==null)return o}return null},gh=e=>na[e]!==void 0,$o=(e,t,r)=>ra(e,r,t/2),ea=(e,t)=>{const r=(0,u.projectAnchorToPanel)(e.start,t),n=(0,u.projectAnchorToPanel)(e.end,t);return r.x===n.x&&r.y===n.y?null:{shape:"segment",start:r,end:n}},ta=(e,{panel:t,measuredBoxes:r})=>{const n=r.get(e.id);if(n===void 0)return null;const o=(0,u.alignUnitFractions)(e.align),a=(0,u.projectAnchorToPanel)(e.at,t);return{shape:"rect",rect:{x:a.x-o.x*n.width,y:a.y-(1-o.y)*n.height,width:n.width,height:n.height}}},Xe=(e,t)=>(r,n,o)=>{const a=e(r).find(i=>i.id===n);return a===void 0?null:t(a,o)},ra=(e,t,r=0)=>{const n=(0,u.projectRegionToPanel)(e,t);return{shape:"rect",rect:{x:n.x-r,y:n.y-r,width:n.width+r*2,height:n.height+r*2}}},na={text:Xe(e=>e.textAnnotations,ta),shape:Xe(e=>e.shapes,(e,t)=>$o(e.region,t.readers.annotation.shape(e.id).get("strokeWidth"),t.panel)),image:Xe(e=>e.images,(e,t)=>ra(e.region,t.panel)),arrow:Xe(e=>e.arrows,(e,t)=>ea(e,t.panel))},oa=(e,t)=>{const r=(0,u.findAnnotation)(e,t);return r!==null&&gh(r.kind)&&(0,u.isAnnotationMovable)(r)},vh=200,fh=({engine:e,store:t,overlayRef:r})=>{const{tolerance:n}=ue[Me()],o=(0,xe.useStore)(t,a=>a.isQueryOwnedByEditor);(0,v.useEffect)(()=>{const a=r.current;if(!a)return;const i=mh(a,e),c=o?void 0:xh(a,e,t,n??void 0);return()=>{c?.(),i()}},[e,t,r,n,o])},mh=(e,t)=>{const r=()=>{const i=e.getBoundingClientRect();i.width===0||i.height===0||t.setViewport({width:i.width,height:i.height})};let n=null;const o=()=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,r()},vh)},a=new ResizeObserver(o);return a.observe(e),r(),()=>{a.disconnect(),n!==null&&clearTimeout(n)}},ph=(e,t)=>e.kind==="cursor"?null:{x:t.left+e.point.x,y:t.top+e.point.y,placement:e.placement,annotationId:e.annotationId},xh=(e,t,r,n)=>{let o=null,a=null;const i=()=>{const p=e.getBoundingClientRect();return p.width>0&&p.height>0?p:null},c=(p,A)=>({x:p.clientX-A.left,y:p.clientY-A.top}),l=()=>{a=null;const p=o;if(o=null,!p)return;const A=i();if(A===null)return;const x=c(p,A),S=r.getState();if(S.isPointerSuspended)return;const b=(0,u.findPointerRegion)(x,S.pointerRegions);if(b!==null){S.setHoverState(t.query(b.cursor,n)),S.setTooltipAnchor(ph(b.tooltip,A));return}const j=(0,u.toPanelCursor)(x,A);S.setHoverState(t.query(j,n)),S.setTooltipAnchor(null)},d=()=>{const p=r.getState();p.hover.primary===null&&p.tooltipAnchor===null||(p.setHoverState(u.RESTING_HOVER_STATE),p.setTooltipAnchor(null))},h=p=>{const A=r.getState();if(A.pointerRegions.length===0)return!1;const x=i();return x===null?!1:(0,u.findPointerRegion)(c(p,x),A.pointerRegions)!==null},g=p=>{r.getState().isPointerSuspended||h(p)||(document.removeEventListener("pointermove",g),d())},m=p=>{document.removeEventListener("pointermove",g),o=p,a===null&&(a=requestAnimationFrame(l))},f=p=>{if(o=null,a!==null&&(cancelAnimationFrame(a),a=null),!r.getState().isPointerSuspended){if(h(p)){document.addEventListener("pointermove",g);return}d()}};return e.addEventListener("pointermove",m),e.addEventListener("pointerleave",f),()=>{e.removeEventListener("pointermove",m),e.removeEventListener("pointerleave",f),document.removeEventListener("pointermove",g),a!==null&&cancelAnimationFrame(a),o=null}},yh=({panelRect:e})=>{const{engine:t,store:r,overlayRef:n}=ge(),o=le(rr),a=le(gu),i=le(l=>l.caret!==null);fh({engine:t,store:r,overlayRef:n});const c=O(l=>o!==null&&oa(l.spec.annotations,o));return(0,s.jsx)("rect",{ref:n,x:e.x,y:e.y,width:e.width,height:e.height,fill:"transparent",pointerEvents:i?"none":"all",cursor:Ah(c,a),"data-testid":"pointer-capture-layer"})},Ah=(e,t)=>e?"move":t?"pointer":void 0,At="data-hover-active",bh=e=>{const{store:t}=ge(),r=ue[Me()].hoverPaint,n=(0,xe.useStore)(t,a=>a.hover.primary!==null),o=r&&n;(0,v.useEffect)(()=>{const a=e.current;if(a)return o?a.setAttribute(At,"true"):a.removeAttribute(At),()=>{a.removeAttribute(At)}},[e,o])},gt=()=>le(e=>Pe(e,"move-drag")?.annotationId??Pe(e,"shape-resize-drag")?.annotationId??Pe(e,"arrow-endpoint-drag")?.annotationId??null),Be=e=>{const t=O(i=>i.annotations),r=Eo(),n=Zc(),o=(0,v.useCallback)(i=>Wr(n,"cycle",i,`Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`),[n]),a=(0,v.useCallback)(i=>Wr(n,"missing-ref",i,`Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`),[n]);return(0,v.useMemo)(()=>(0,u.resolveDeferredAnchors)({annotations:t,panelRect:e,measuredBoxes:r,onCycle:o,onMissingRef:a}),[t,e,r,o,a])},Wr=(e,t,r,n)=>{const o=[t,...[...r].sort()].join("\0");e.has(o)||(e.add(o),console.warn(n))},Sh=16,aa=({linePath:e,strokeWidth:t})=>(0,s.jsx)("path",{d:e,stroke:"transparent",strokeWidth:Math.max(t,Sh),fill:"none",pointerEvents:"stroke"}),jh=1.4,wh={light:{primary:"#1D2129",inverse:"#FFFFFF"},dark:{primary:"#FFFFFF",inverse:"#1D2129"}},sa=({computed:e,style:t,isAddressable:r})=>{const n=(0,v.useId)(),{colorScheme:o}=ct(),a=e.dashArray?{strokeDasharray:e.dashArray,strokeDashoffset:e.dashOffset}:{},i=t.outline.shadow==="none"?null:t.outline.shadow,c=t.outline.strokeWidth>0,l=wh[o],d=t.outline.stroke??Eh(t.stroke,l.primary,l.inverse),h=i===null?null:kh(e,t.outline.strokeWidth,i.blur);return(0,s.jsxs)("g",{pointerEvents:r?void 0:"none",children:[r&&(0,s.jsx)(aa,{linePath:e.linePath,strokeWidth:e.strokeWidth}),i!==null&&h!==null&&(0,s.jsx)("defs",{children:(0,s.jsx)("filter",{id:n,filterUnits:"userSpaceOnUse",...h,children:(0,s.jsx)("feDropShadow",{dx:i.offsetX,dy:i.offsetY,stdDeviation:i.blur,floodColor:i.color})})}),(0,s.jsxs)("g",{filter:i===null?void 0:`url(#${n})`,children:[c&&(0,s.jsx)("path",{d:Ph(e),stroke:d,strokeWidth:e.strokeWidth+2*t.outline.strokeWidth,strokeLinecap:"round",fill:"none"}),(0,s.jsx)("path",{d:e.linePath,stroke:t.stroke,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none",...a}),e.startArrowheadPath.length>0&&(0,s.jsx)("path",{d:e.startArrowheadPath,stroke:t.stroke,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none"}),e.endArrowheadPath.length>0&&(0,s.jsx)("path",{d:e.endArrowheadPath,stroke:t.stroke,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none"})]})]})},Ph=e=>[e.linePath,e.startArrowheadPath,e.endArrowheadPath].filter(t=>t.length>0).join(" "),kh=(e,t,r)=>{const n=e.arrowheadExtent+e.strokeWidth+t+r;return{x:Math.min(e.startX,e.endX)-n,y:Math.min(e.startY,e.endY)-n,width:Math.abs(e.endX-e.startX)+2*n,height:Math.abs(e.endY-e.startY)+2*n}},Eh=(e,t,r)=>{try{return(0,Ua.getContrast)(e,t)<jh?r:t}catch{return r}},Rh=({panelRect:e,isEditable:t})=>{const{arrows:r}=Be(e),n=gt(),o=B(),a=(0,v.useMemo)(()=>r.filter(i=>i.id!==n).flatMap(i=>{const c=(0,u.resolveArrowAnnotationStyle)(o,i.id),l=(0,u.computeArrow)({arrow:i,style:c,panelWidth:e.width,panelHeight:e.height});return l===null?[]:[{computed:l,style:c}]}),[r,n,e.width,e.height,o]);return a.length===0?null:(0,s.jsx)("g",{transform:`translate(${e.x}, ${e.y})`,"data-testid":"arrows",children:a.map(({computed:i,style:c})=>(0,s.jsx)("g",{...Ue({kind:"annotation",id:i.id}),children:(0,s.jsx)(sa,{computed:i,style:c,isAddressable:t})},i.id))})},ia=()=>{const{selectionStore:e}=D();return(0,xe.useStore)(e,t=>t.selection)},Ch=({linePath:e,arrowheadPath:t,stroke:r,strokeWidth:n,isAddressable:o})=>{const a={stroke:r,strokeWidth:n,strokeLinecap:"round",fill:"none"};return(0,s.jsxs)("g",{pointerEvents:o?void 0:"none",children:[o&&(0,s.jsx)(aa,{linePath:e,strokeWidth:n}),(0,s.jsx)("path",{d:e,...a}),(0,s.jsx)("path",{d:t,...a,strokeLinejoin:"round"})]})},Mh=({x:e,y:t,text:r,box:n,label:o,arrowColor:a,isAddressable:i})=>{const{fonts:c}=ye();return(0,s.jsxs)("g",{pointerEvents:i?void 0:"none",children:[(0,s.jsx)("rect",{x:n.x,y:n.y,width:n.width,height:n.height,rx:o.cornerRadius,fill:o.fill,stroke:o.stroke??a,strokeWidth:o.strokeWidth}),(0,s.jsx)("text",{x:e,y:t,dominantBaseline:"central",textAnchor:"middle",fill:o.textColor,style:Ce(o,c.familyDefault),...st(o),children:(0,u.applyTextTransform)(r,o.textTransform)})]})},Bh="_1i8rg6j0",Th="75%",Ih=({panelRect:e,isEditable:t})=>{const r=Bo(),n=le(rr),o=ia(),a=(0,v.useMemo)(()=>new Set(o.filter(i=>i.kind==="annotation").map(i=>i.id)),[o]);return r.length===0?null:(0,s.jsx)("g",{transform:`translate(${e.x}, ${e.y})`,"data-testid":"difference-arrows",children:r.map(({color:i,style:c,id:l,linePath:d,arrowheadPath:h,labelPosition:g,labelBox:m,labelText:f,isDragged:p,hasComparableEndpoints:A})=>{const x=n===l||a.has(l),S=p&&!A,b=S?y.vars.alert:i,j=x&&!S?Oh(b):b;return(0,s.jsxs)("g",{className:n===l?Bh:void 0,"data-warning":S||void 0,...Ue({kind:"annotation",id:l}),children:[(0,s.jsx)(Ch,{linePath:d,arrowheadPath:h,stroke:j,strokeWidth:c.strokeWidth,isAddressable:t}),(0,s.jsx)(Mh,{x:g.x,y:g.y,text:f,box:m,label:c.label,arrowColor:j,isAddressable:t})]},l)})})},Oh=e=>`color-mix(in srgb, ${e} ${Th}, ${y.vars.textPrimary})`,Lh={fill:"none",contain:"xMidYMid meet",cover:"xMidYMid slice"},la=({image:e,panel:t,style:r})=>{const n=(0,v.useId)(),{src:o,region:a,fit:i}=e,c=(0,u.projectRegionToPanel)(a,t),l=r.cornerRadius>0;return(0,s.jsxs)("g",{children:[l&&(0,s.jsx)("clipPath",{id:n,children:(0,s.jsx)("rect",{...c,rx:r.cornerRadius})}),(0,s.jsx)("image",{href:o,...c,preserveAspectRatio:Lh[i],opacity:r.alpha,clipPath:l?`url(#${n})`:void 0})]})},Vr=({panelRect:e,zOrder:t})=>{const r=Be(e).images,n=B(),o=gt(),a=r.filter(i=>i.zOrder===t&&i.id!==o);return a.length===0?null:(0,s.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":`image-annotations-${t}`,children:a.map(i=>(0,s.jsx)("g",{...Ue({kind:"annotation",id:i.id}),children:(0,s.jsx)(la,{image:i,panel:e,style:n.annotation.image(i.id).resolve()})},i.id))})},ca=({shape:e,style:t,panel:r})=>{const n=(0,u.projectRegionToPanel)(e.region,r);return(0,s.jsx)("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:t.fill,fillOpacity:t.fillAlpha,opacity:t.alpha,stroke:(0,u.getShapeAnnotationStroke)(t)??"none",strokeWidth:t.strokeWidth})},Ur=({panelRect:e,zOrder:t})=>{const r=Be(e).shapes,n=B(),o=gt(),a=r.filter(i=>i.zOrder===t&&i.id!==o);return a.length===0?null:(0,s.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":`shapes-${t}`,children:a.map(i=>(0,s.jsx)("g",{...Ue({kind:"annotation",id:i.id}),children:(0,s.jsx)(ca,{shape:i,style:n.annotation.shape(i.id).resolve(),panel:e})},i.id))})},Nh="_1aj6s5s0",Fh="_1aj6s5s1",Gh=.1,Hh=({annotation:e,panel:t,style:r,blockRef:n})=>(0,s.jsx)(ua,{annotation:e,panel:t,style:r,blockRef:n,children:(0,s.jsx)(ke,{content:e.content})}),ua=({annotation:e,panel:t,style:r,blockRef:n,children:o})=>{const a=(0,u.projectAnchorToPanel)(e.at,t);return(0,s.jsx)("foreignObject",{x:a.x,y:a.y,width:(0,u.toPercent)(e.width),height:t.height,overflow:"visible",pointerEvents:"none",children:(0,s.jsx)("div",{ref:n,className:Nh,style:{...Wh(r),transform:Dh(e.align)},children:o})})},Dh=e=>{const t=(0,u.alignUnitFractions)(e);return`translate(${-t.x*100}%, ${-(1-t.y)*100}%)`},Wh=e=>({...G(e),padding:`${e.paddingBlock}px ${e.paddingInline}px`,borderRadius:e.cornerRadius,opacity:e.alpha,...Vh(e)}),Vh=e=>{if(e.fill==="transparent")return{};const t=e.fillAlpha<1?V(e.fill,e.fillAlpha):e.fill;if(e.strokeWidth<=0)return{backgroundColor:t};const r=e.stroke??yn(e.fill,Gh);return{backgroundColor:t,boxShadow:`0 0 0 ${e.strokeWidth}px ${r}`}},Uh=e=>{const t=Be(e).textAnnotations,r=le(n=>Pe(n,"text-resize-drag"));return(0,v.useMemo)(()=>t.map(n=>da(n,r)),[t,r])},da=(e,t)=>t===null||t.annotationId!==e.id?e:{...e,at:{...e.at,x:e.at.x+t.shift},width:t.width},Kh=({panelRect:e})=>{const t=Uh(e),r=B(),n=gt(),o=t.filter(a=>a.id!==n);return o.length===0?null:(0,s.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":"text-annotations",children:o.map(a=>(0,s.jsx)(Yh,{annotation:a,panel:e,style:r.annotation.text(a.id).resolve()},a.id))})},Yh=({annotation:e,panel:t,style:r})=>{const n=Ro(e.id),o=le(i=>i.caret?.annotationId===e.id),{TextAnnotation:a}=ar();return(0,s.jsx)("g",{...Ue({kind:"annotation",id:e.id}),children:(0,s.jsx)(ua,{annotation:e,panel:t,style:r,blockRef:n,children:o&&a?(0,s.jsx)(a,{annotation:e}):(0,s.jsx)(ke,{content:e.content})})})},Qh="ph8bdc0";var zh="ph8bdc2",Kr={hittable:"ph8bdc4 ph8bdc3",inert:"ph8bdc5 ph8bdc3"},Xh=({cx:e,cy:t,color:r,style:n})=>{const o=rn(n.shadow);return(0,s.jsx)("circle",{cx:e,cy:t,r:n.size/2,style:{fill:r,stroke:n.stroke,strokeWidth:n.strokeWidth,...o===void 0?{}:{filter:o}}})};function qh(e){const t=ce(),{formattingLocale:r}=D(),n=B(),o=O((0,Y.useShallow)(l=>({pinnedNumbers:l.annotations.pinnedNumbers,comments:l.annotations.comments,coordSystem:l.coordSystem,numberFormat:l.config.numberFormat,parsingLocale:l.config.parsingLocale}))),a=r??o.parsingLocale,i=(0,v.useMemo)(()=>(0,u.createPinnedNumberValueFormatter)({numberFormat:o.numberFormat,locale:a}),[o.numberFormat,a]),c=(0,v.useMemo)(()=>(l,d,h)=>{const g=(0,u.resolveCalloutAnnotationStyle)(n,l==="pinned-number"?"pinnedNumber":"comment",d).label,m=(0,u.toFontSpec)(g,We),f=Jh(t,l,h,m),p=t.measureText(f,m),A=l==="pinned-number"?15:0;return{width:p.width+A+(g.paddingInline+g.strokeWidth)*2,height:Math.max(p.height,10)+(g.paddingBlock+g.strokeWidth)*2,text:f}},[t,n]);return(0,v.useMemo)(()=>(0,u.placeCallouts)({pinnedNumbers:o.pinnedNumbers,comments:o.comments,panelRect:e,coordSystem:o.coordSystem,measurer:c,formatPinnedNumber:l=>i(l.at)}),[o.pinnedNumbers,o.comments,e,o.coordSystem,c,i])}var Jh=(e,t,r,n)=>t!=="comment"?r:(0,u.truncateToWidth)(r,140,o=>e.measureText(o,n).width),Yr="callouts",Zh=({panelRect:e})=>{const{pinnedNumbers:t,comments:r}=O((0,Y.useShallow)(f=>({pinnedNumbers:f.annotations.pinnedNumbers,comments:f.annotations.comments}))),n=O(f=>f.coordSystem),o=oe(),a=Ya(10),i=B(),c=qh(e),{store:l}=ge(),d=(0,v.useMemo)(()=>{const f=new Map;for(const p of t)f.set(p.id,p.at);for(const p of r)f.set(p.id,p.at);return f},[t,r]),h=(0,v.useMemo)(()=>{const f=new Map;for(const[p,A]of d)f.set(p,a(A));return f},[d,a]),g=(0,v.useMemo)(()=>{const f=new Map;for(const p of t)f.set(p.id,(0,u.resolveCalloutAnnotationStyle)(i,"pinnedNumber",p.id));for(const p of r)f.set(p.id,(0,u.resolveCalloutAnnotationStyle)(i,"comment",p.id));return f},[t,r,i]),m=(0,v.useMemo)(()=>(0,u.buildCalloutHitRegions)(c,e),[c,e]);return(0,v.useEffect)(()=>{const f=l.getState();return f.publishPointerRegions(Yr,m),()=>{f.publishPointerRegions(Yr,[])}},[l,m]),t.length===0&&r.length===0?null:(0,s.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible",className:Qh,"data-testid":"callouts",children:c.map(f=>{if(!f.inView)return null;const p=d.get(f.id),A=g.get(f.id);if(p===void 0||A===void 0)return null;const x=h.get(f.id),S=x?.color,b=f.miniRect.width<=e.width&&f.miniRect.height<=e.height;return(0,s.jsxs)("g",{"data-testid":f.kind,children:[(0,s.jsx)("foreignObject",{x:f.miniRect.x,y:f.miniRect.y,width:f.miniRect.width,height:f.miniRect.height,overflow:"visible",children:(0,s.jsxs)("div",{className:b?Kr.hittable:Kr.inert,style:eg(A.label),children:[f.kind==="pinned-number"&&(0,s.jsx)("span",{className:"ph8bdc1",children:(0,s.jsx)(Ve,{shape:o(p.geom,n.type)?.swatchShape??"square",surface:"callout",color:S??"currentColor",width:10,height:10,alpha:x?.alpha,cornerRadius:x?.cornerRadius})}),(0,s.jsx)("span",{className:zh,style:tg(A.label),children:f.text})]})}),(0,s.jsx)(Xh,{cx:f.anchorPx.x,cy:f.anchorPx.y,color:_h(A.marker,S),style:A.marker})]},f.id)})})},_h=(e,t)=>e.isFillAuthored?e.fill:t??e.fill,$h=e=>e.isTextColorAuthored?e.textColor:(0,u.ensureReadableTextColor)(e.textColor,e.fill),eg=e=>({background:e.fill,borderRadius:e.cornerRadius,padding:`${e.paddingBlock}px ${e.paddingInline}px`,boxShadow:Gt(e.shadow),...e.strokeWidth>0?{border:`${e.strokeWidth}px solid ${e.stroke}`}:{}}),tg=e=>({...G(e),color:$h(e)}),rg=(e,t)=>e*10*t,ha={"clapping-hands":{aspectRatio:1.059,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABICAYAAABP0VPJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABipSURBVHgB7VwJfFTVuf/uMvtMlplJJiEhBEhYwiIYNgExUBSQ6qMqblWrz5/WtfBa67NiH1iftbW1VqWghWqt+opFfajFBRcSUMImEBISspCFSTIh++zbXfqdO3cmswWSSPVHf/1+ub977znfPfec//m28507Afg3/ZvORsxwmEVRpJDo0tISCqA0XEzJBx06bwjXUXAB0lA7TZWUlDCtra3Mtm3vjCUF1113dbNWqxXItcfjod966718igpSubm5ow8fPnx8zZo1fQ0NMzlR/JuAIIrwL0LU6tWrmfz8fL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QfZljJD+vJD2SEf4VALpImF3/wZBFNoBQv/0Tp/wB4VebDeUtu1AAAAABJRU5ErkJggg=="},rocket:{aspectRatio:1.046,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABECAYAAADeOlj2AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABf2SURBVHgB7VsJeFTluX7PnFmTzEz2ENZookLYCYggF4N1gSs8tloorqVFWqsWNyxorzZcWmpdwF1xt9figrQVxWrRCopFLAgkmBBAzB6ykNm3M3Pm3Pc/ExWYJITFFvv05zmcyTlnzvn/9/++9/u+9z8D/Kf9p4km49+rSZqmSWyG9evXG0pLS+WsrCy5b99m+YwzSg01NTVdfwn/Hk2MQy4uLjYEg0HD+++/P9LpzBhlNhsHmUymgaqqemKxWK3f798xefLk9Xv3jo4Bq+L8joZveysrKzNwZwQKrE1NTReGQpEX4/G4W+uhEZDaTZs2DSkpKTHhW2wEouMGMYjVq1fnc3aXHmngXbX6+vppdBcjvmWN/i4AKDGVl5cPptk/eiyDP9giVq9+O5/3NeBb0nSff/fdd/MCgcBvjmfwBze3270QKDWe7OYgJbZiY1PTu1Py8vKeNBgMA4/0JV9MQ4U7ipYIoDAA2k0GnJUuIdN86HVms3lUcXGr4WQGQZ/9tWvXZk+Z8p07bTbLdT1d7I3G8XFLGKtqAqgNA30dNuSkWGCSJfgjKva5NdxwuunQB0jyQJfLdtJagvB94549L5eceuqpr/Q0+z4O/pldbrywxwOr2Yx+HPwZWTY4bWbEVMATUuHl1qIlBwJNi0vRaK18spGCJMJeUVGR2et9/+bCwsK3ewKg3e3Bls+bsbs9iNy0FAzOtqMwMxXZKWZEmAm4gio6Aqq+94XVLu6gIT09XTrZLEF6/vnnzZWVu+7vyfx9wSCa2g+ABIkChxl35phR7gK2R02IyiZ4InF0cODecFwfvI/7fjmmpPuoatxHctROGhDKymAoLl6bO2PGufdbrZbLu7ompqpo5uA7vF6avgUpFgssd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bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="}},ng=3.2,og=({panelRect:e})=>{const t=Be(e).stickers,r=B().graph().get("textScale");if(t.length===0)return null;const n=rg(ng,r);return(0,s.jsx)("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":"stickers",children:t.map(o=>{const a=(0,u.projectAnchorToPanel)(o.at,e);return(0,s.jsx)(ag,{sticker:o,sizePx:n,x:a.x,y:a.y},o.id)})})},ag=({sticker:e,sizePx:t,x:r,y:n})=>{const o=ha[e.sticker];if(!o)return null;const{width:a,height:i}=sg(o.aspectRatio,t);return(0,s.jsx)("image",{href:o.src,x:r,y:n,width:a,height:i,transform:`translate(${-a/2}, ${-i/2})`})},sg=(e,t)=>e>=1?{width:t,height:t/e}:{width:t*e,height:t},ig=.25,ga=({children:e,...t})=>{const r=Ec();return r<=0?(0,s.jsx)("g",{...t,children:e}):(0,s.jsx)(E.motion.g,{...t,initial:{opacity:0},animate:{opacity:1},transition:{duration:ig,delay:r},children:e})},lg="_1agclyl0";var cg="_1agclyl2",va=({x:e,y:t,width:r,height:n,text:o,isRotated:a,labelRole:i,position:c,coordType:l,backdropColor:d})=>{const h=R(ut,B()),g=a?`rotate(-90 ${e} ${t})`:void 0,m=h[i][c],f=m.stroke!==void 0&&(m.strokeWidth??0)>0,p=hg(i,l,m),A=dg(m,p,d);return(0,s.jsxs)("g",{transform:g,children:[p&&(0,s.jsx)("rect",{className:"_1agclyl1",x:e-r/2,y:t-n/2,width:r,height:n,rx:m.cornerRadius,ry:m.cornerRadius,fill:m.fill,...f?{stroke:m.stroke,strokeWidth:m.strokeWidth}:{}}),(0,s.jsx)("text",{className:cg,style:{...Ce(m),fill:ug(m,A)},...st(m),x:e,y:t,textAnchor:"middle",dominantBaseline:"central",children:(0,u.applyTextTransform)(o,m.textTransform)})]})},ug=(e,t)=>e.isTextColorAuthored||t===void 0?e.textColor:(0,u.pickReadableTextColor)(t),dg=(e,t,r)=>{if(r!==void 0)return(0,u.compositeColor)(t?e.fill:void 0,r)},hg=(e,t,r)=>r.fill===void 0?!1:e==="aggregate"||t==="cartesian",gg=({panelRect:e,formattingLocale:t,plotBottomY:r,isFooterChromeReserved:n})=>{const o=ce(),a=ye(),i=O((0,Y.useShallow)(f=>({layers:f.layers,coordSystem:f.coordSystem,axes:f.guides.axes,numberFormat:f.config.numberFormat,parsingLocale:f.config.parsingLocale}))),c=B(),l=R(ut,c),d=(0,v.useMemo)(()=>Ao({textMeasurer:o,dataLabelStyles:l,familyDefault:a.fonts.familyDefault}),[o,l,a.fonts.familyDefault]),h=(0,v.useMemo)(()=>(0,u.buildDataLabelsContent)({...i,panelRect:e,measureDataLabel:d,readers:c,formattingLocale:t,plotBottomY:r,isFooterChromeReserved:n}),[i,e,d,c,t,r,n]),g=(0,v.useRef)("");(0,v.useEffect)(()=>{if(h.warnings.length===0){g.current="";return}const f=JSON.stringify(h.warnings);f!==g.current&&(g.current=f,_r(h.warnings))},[h.warnings]);const m=h.labels.map((f,p)=>(0,s.jsx)(va,{x:f.x,y:f.y,width:f.width,height:f.height,text:f.text,isRotated:f.isRotated,labelRole:f.role,position:f.position,coordType:i.coordSystem.type,backdropColor:f.backdropColor},`${f.layerId}:${p}`));return(0,s.jsx)(ga,{className:lg,transform:`translate(${e.x}, ${e.y})`,"data-testid":"data-labels",children:m})},vg=({edge:e,position:t,labelRotation:r,offset:n,axisSize:o})=>{if(r!==0&&(e==="top"||e==="bottom")){const a=e==="top",i=a?-n:n;return{x:0,y:i,textAnchor:a?"start":"end",dominantBaseline:"central",transform:`rotate(${r}, 0, ${i})`}}switch(e){case"bottom":return{x:t*o.width,y:n,textAnchor:"middle",dominantBaseline:"hanging",transform:void 0};case"top":return{x:t*o.width,y:o.height-n,textAnchor:"middle",dominantBaseline:"auto",transform:void 0};case"left":return{x:o.width-n,y:t*o.height,textAnchor:"end",dominantBaseline:"central",transform:void 0};case"right":return{x:n,y:t*o.height,textAnchor:"start",dominantBaseline:"central",transform:void 0}}},fg=(e,t)=>{const r=t.height/2;switch(e){case"left":return{x:0,y:r,textAnchor:"start",dominantBaseline:"middle",transform:void 0};case"right":return{x:t.width,y:r,textAnchor:"end",dominantBaseline:"middle",transform:void 0};case"top":case"bottom":return{x:t.width/2,y:r,textAnchor:"middle",dominantBaseline:"middle",transform:void 0}}},mg=(e,t,r,n)=>{const{width:o,ascent:a,descent:i}=t,c=a+i,l=bg(e,o),d=Sg(e,a,c),h=xg(r,e,n,{x:l,y:d,width:o,height:c});return{x:l-h.left,y:d-h.top,width:o+h.left+h.right,height:c+h.top+h.bottom,transform:e.transform}},pg=(e,t)=>{const r=e.map((o,a)=>({position:o,index:a})).sort((o,a)=>o.position-a.position),n=e.map(()=>1/0);return r.forEach((o,a)=>{const i=r[a-1],c=r[a+1],l=i===void 0?1/0:o.position-i.position,d=c===void 0?1/0:c.position-o.position,h=Math.min(l,d);n[o.index]=Number.isFinite(h)?h*t:1/0}),n},xg=(e,t,r,n)=>r===void 0?{left:e,right:e,top:e,bottom:e}:t.transform!==void 0?yg(e,t):Ag(e,r,n),yg=(e,{y:t,textAnchor:r})=>{const n=Ne(e,Math.abs(t));return r==="end"?{left:e,right:n,top:e,bottom:e}:{left:n,right:e,top:e,bottom:e}},Ag=(e,{edge:t,stepPx:r,axisSize:n},o)=>{const a=Qr(e,r,o.width),i=Qr(e,r,o.height);switch(t){case"bottom":return{left:a,right:a,top:Ne(e,o.y),bottom:e};case"top":return{left:a,right:a,top:e,bottom:Ne(e,n.height-o.y-o.height)};case"left":return{left:e,right:Ne(e,n.width-o.x-o.width),top:i,bottom:i};case"right":return{left:Ne(e,o.x),right:e,top:i,bottom:i}}},Ne=(e,t)=>Math.max(0,Math.min(e,t)),Qr=(e,t,r)=>Math.min(e,Math.max(0,(t-r)/2)),bg=({x:e,textAnchor:t},r)=>{switch(t){case"start":return e;case"middle":return e-r/2;case"end":return e-r}},Sg=({y:e,dominantBaseline:t},r,n)=>{switch(t){case"hanging":return e;case"central":case"middle":return e-n/2;case"auto":return e-r}},jg={fill:"transparent",pointerEvents:"all"},cr=({placement:e,text:t,style:r,isHitTestable:n,bounds:o})=>(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)(wg,{placement:e,text:t,style:r,bounds:o}),(0,s.jsx)("text",{...e,style:Ce(r),...st(r),fill:r.textColor,children:(0,u.applyTextTransform)(t,r.textTransform)})]}),wg=({placement:e,text:t,style:r,bounds:n})=>{const o=ce(),{fonts:a}=ye();return(0,s.jsx)("rect",{...(0,v.useMemo)(()=>mg(e,o.measureText(t,(0,u.toFontSpec)(r,a.familyDefault)),3,n),[e,o,t,r,a.familyDefault,n]),...jg})},Pg=({edge:e,position:t,labelRotation:r,label:n,tickLabelStyle:o,axisSize:a,stepPx:i=1/0,isHitTestable:c=!1})=>{const{offset:l}=o,d=(0,v.useMemo)(()=>vg({edge:e,position:t,labelRotation:r,offset:l,axisSize:a}),[e,t,r,l,a]),h=(0,s.jsx)(cr,{placement:d,text:n,style:o,isHitTestable:c,bounds:(0,v.useMemo)(()=>({edge:e,stepPx:i,axisSize:a}),[e,i,a])});return d.transform===void 0?h:(0,s.jsx)("svg",{x:(0,u.toPercent)(t),y:e==="top"?"100%":0,style:{overflow:"visible"},children:h})},kg=({formattedAxis:e,rect:t})=>{const r=e.position==="bottom"||e.position==="top",n=(0,u.getAestheticFromScaleAestheticKey)(e.scaleAestheticKey),o=B(),a=R(er,o)(n,e.position),i=R(xo,o)[n],c=de(),l=(0,v.useMemo)(()=>({width:t.width,height:t.height}),[t.width,t.height]),d=r?t.width:t.height,h=(0,v.useMemo)(()=>c?pg(e.ticks.map(g=>g.position),d):void 0,[c,e.ticks,d]);return(0,s.jsxs)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,style:{overflow:"visible"},children:[!1,e.ticks.map((g,m)=>{const f=g.formattedLabel,p=r?g.position:1-g.position,A=Eg(e.position,p,t,i.length),x=c&&f!=="";return(0,s.jsxs)("g",{...x?dt(e.scaleAestheticKey,m):void 0,cursor:x?"pointer":void 0,children:[e.ticksVisible&&(0,s.jsx)("line",{...A,stroke:i.stroke,strokeWidth:i.strokeWidth,strokeDasharray:(0,u.toStrokeDasharray)(i.dashArray,i.strokeWidth),pointerEvents:c?"none":void 0}),(0,s.jsx)(Pg,{edge:e.position,position:p,labelRotation:e.labelRotation,label:f,tickLabelStyle:a,axisSize:l,stepPx:h?.[m],isHitTestable:x})]},m)})]})},Eg=(e,t,r,n)=>{const o=(0,u.toPercent)(t);switch(e){case"bottom":return{x1:o,y1:0,x2:o,y2:n};case"top":return{x1:o,y1:r.height,x2:o,y2:r.height-n};case"left":return{x1:r.width,y1:o,x2:r.width-n,y2:o};case"right":return{x1:0,y1:o,x2:n,y2:o}}},Rg=({axes:e,rects:t})=>{const r=R(po,B()),n=de();return(0,s.jsx)(s.Fragment,{children:e.map(o=>{const a=t[o.position];return!a||!o.isVisible?null:(0,s.jsx)(Cg,{axis:o,rect:a,labelStyle:r[(0,u.getAestheticFromScaleAestheticKey)(o.scaleAestheticKey)],isHitTestable:n},`axis-label-${o.position}`)})})},Cg=({axis:e,rect:t,labelStyle:r,isHitTestable:n})=>{const o=(0,v.useMemo)(()=>fg(e.position,t),[e.position,t]),a=n&&e.label!==null&&e.label!=="",i=a?dt(e.scaleAestheticKey):void 0;return(0,s.jsxs)("g",{transform:`translate(${t.x}, ${t.y})`,...i,cursor:a?"pointer":void 0,children:[!1,(0,s.jsx)(cr,{placement:o,text:e.label??"",style:r,isHitTestable:a})]})},Mg=({formattedAxes:e,tickRects:t})=>(0,s.jsx)(s.Fragment,{children:e.map(r=>{if(r.geometry!=="linear")return null;const n=t[r.position];return!n||!r.isVisible?null:(0,s.jsx)(kg,{formattedAxis:r,rect:n},r.scaleAestheticKey)})}),Bg=({formattedAxes:e,labelRects:t})=>(0,s.jsx)(Rg,{axes:e.filter(r=>r.geometry==="linear"),rects:t}),fa={strokeDashoffset:"0",strokeLinecap:"round"},He=(e,t)=>e.gridLine[t]().resolve(),ma=({axes:e,panelBorderSizes:t,panelFrameRect:r,panelRect:n})=>{const o=B(),a=de(),i=R(He,o,"x"),c=R(He,o,"y"),l=n.x-r.x,d=n.y-r.y;return(0,s.jsx)("svg",{"data-testid":"grid",x:r.x,y:r.y,width:r.width,height:r.height,style:{overflow:"visible"},children:e.map(h=>{if(h.geometry!=="linear"||!h.gridVisible)return null;const g=h.position==="bottom"||h.position==="top",m=(0,u.getAestheticFromScaleAestheticKey)(h.scaleAestheticKey)==="x"?i:c,f=(0,u.toStrokeDasharray)(m.dashArray,m.strokeWidth);return(0,s.jsx)("g",{children:h.ticks.map((p,A)=>{const x=Tg(g,p.position);if(x!==null&&t[x]>0)return null;const S=g?p.position:1-p.position;let b;if(g){const w=S*n.width+l;b={x1:w,y1:0,x2:w,y2:"100%"}}else{const w=S*n.height+d;b={x1:0,y1:w,x2:"100%",y2:w}}const j=(0,s.jsx)("line",{...b,...fa,strokeDasharray:f,strokeWidth:m.strokeWidth,stroke:m.stroke});return a?(0,s.jsxs)("g",{...ir(h.scaleAestheticKey),children:[j,(0,s.jsx)("line",{...b,stroke:"transparent",strokeWidth:7,pointerEvents:"stroke","data-testid":"grid-line-hit-area"})]},A):(0,s.jsx)(v.Fragment,{children:j},A)})},h.scaleAestheticKey)})})},Tg=(e,t)=>t<=0?e?"left":"bottom":t>=1?e?"right":"top":null,Ig=({sizes:e,panelFrameRect:t})=>{const r=O(a=>a.coordSystem.type==="polar"),n=R(u.resolvePanelBorderStyle,B());if(r)return null;const o=(0,u.computePanelBorderPaths)(n,{x:e.left/2,y:e.top/2,width:t.width-(e.left+e.right)/2,height:t.height-(e.top+e.bottom)/2});return o.length===0?null:(0,s.jsx)("svg",{"data-testid":"panel-border",x:t.x,y:t.y,width:t.width,height:t.height,style:{overflow:"visible"},children:o.map((a,i)=>(0,s.jsx)("path",{d:Og(a.segments),fill:"none",stroke:a.stroke,strokeDasharray:(0,u.toStrokeDasharray)(a.dashArray,a.strokeWidth),strokeWidth:a.strokeWidth,...fa},i))})},Og=e=>e.map(t=>{switch(t.type){case"move":return`M ${t.x} ${t.y}`;case"line":return`L ${t.x} ${t.y}`;case"arc":{const r=t.cx+t.radius*Math.cos(t.endAngle),n=t.cy+t.radius*Math.sin(t.endAngle);return`A ${t.radius} ${t.radius} 0 0 1 ${r} ${n}`}case"close":return"Z"}}).join(" ");var pa=(e,t)=>{const r=O(l=>l.coordSystem);if(r.type!=="polar")return null;const n=t.find(l=>l.geometry==="circular");if(!n)return null;const{innerRadius:o,startAngle:a,spokeRotation:i}=r,c=De(e);return c.radius<=0?null:{circle:c,circularAxis:n,radialAxis:t.find(l=>l.geometry==="radial"),innerRadius:o,startAngle:a,angleFor:l=>(0,u.positionToAngle)(l,a,i),radiusNormFor:l=>o+l*(1-o)}},Lg=16,Ng=({formattedAxes:e,panelRect:t})=>{const r=R(er,B()),n=de(),o=pa(t,e);if(!o)return null;const{circle:a,circularAxis:i,radialAxis:c,startAngle:l,angleFor:d,radiusNormFor:h}=o,g=Fg(c,h,a.radius),m=f=>r((0,u.getAestheticFromScaleAestheticKey)(f.scaleAestheticKey));return(0,s.jsxs)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,overflow:"visible","data-testid":"polar-axis-ticks",children:[c?.isVisible&&g.map(({tick:f,tickIndex:p,radiusNorm:A})=>(0,s.jsx)(zr,{scaleAestheticKey:c.scaleAestheticKey,tickIndex:p,placement:Xr(K(l,A,a),"middle"),label:f.formattedLabel,labelStyle:m(c),isHitTestable:n},`radial-label-${p}`)),i.isVisible&&i.ticks.map((f,p)=>{if(f.position>=1-1e-9)return null;const A=d(f.position),x=K(A,(a.radius+u.POLAR_RIM_LABEL_GAP_PX)/a.radius,a);return(0,s.jsx)(zr,{scaleAestheticKey:i.scaleAestheticKey,tickIndex:p,placement:Xr(x,Gg(A)),label:f.formattedLabel,labelStyle:m(i),isHitTestable:n},`rim-label-${p}`)})]})},zr=({scaleAestheticKey:e,tickIndex:t,placement:r,label:n,labelStyle:o,isHitTestable:a})=>{const i=(0,s.jsx)(cr,{placement:r,text:n,style:o,isHitTestable:a});return a?(0,s.jsx)("g",{...dt(e,t),cursor:"pointer",children:i}):i},Fg=(e,t,r)=>{if(!e)return[];const n=[];let o=Number.NEGATIVE_INFINITY;for(const[a,i]of e.ticks.entries()){const c=t(i.position);if(c<=0)continue;const l=c*r;l-o<Lg||(n.push({tick:i,tickIndex:a,radiusNorm:c}),o=l)}return n},Xr=(e,t)=>({x:e.x,y:e.y,textAnchor:t,dominantBaseline:"central",transform:void 0}),Gg=e=>{const t=Math.sin(e);return Math.abs(t)<.01?"middle":t>0?"start":"end"},Hg=({formattedAxes:e,panelRect:t})=>{const r=B(),n=de(),o=R(He,r,"y"),a=R(He,r,"x"),i=pa(t,e);if(!i)return null;const{circle:c,circularAxis:l,radialAxis:d,innerRadius:h,angleFor:g,radiusNormFor:m}=i;return(0,s.jsxs)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,overflow:"visible","data-testid":"polar-grid",children:[d?.gridVisible&&d.ticks.map((f,p)=>{const A=m(f.position)*c.radius;return A<=0||f.position>=1?null:(0,s.jsx)(bt,{axis:(0,u.getAestheticFromScaleAestheticKey)(d.scaleAestheticKey),lineStyle:o,isHitTestable:n,draw:x=>(0,s.jsx)("circle",{cx:c.centerX,cy:c.centerY,r:A,fill:"none",...x})},`ring-${p}`)}),d?.gridVisible&&(0,s.jsx)(bt,{axis:(0,u.getAestheticFromScaleAestheticKey)(d.scaleAestheticKey),lineStyle:o,isHitTestable:n,draw:f=>(0,s.jsx)("circle",{cx:c.centerX,cy:c.centerY,r:c.radius,fill:"none",...f})}),l.gridVisible&&l.ticks.map((f,p)=>{if(f.position>=1-1e-9)return null;const A=g(f.position),x=K(A,h,c),S=K(A,1,c);return(0,s.jsx)(bt,{axis:(0,u.getAestheticFromScaleAestheticKey)(l.scaleAestheticKey),lineStyle:a,isHitTestable:n,draw:b=>(0,s.jsx)("line",{x1:x.x,y1:x.y,x2:S.x,y2:S.y,...b})},`spoke-${p}`)})]})},bt=({axis:e,lineStyle:t,isHitTestable:r,draw:n})=>{const o=n({stroke:t.stroke,strokeWidth:t.strokeWidth});return r?(0,s.jsxs)("g",{...ir(e),children:[o,n({stroke:"transparent",strokeWidth:7,pointerEvents:"stroke","data-testid":"grid-line-hit-area"})]}):o},Dg=({layer:e,coordSystem:t,shouldAnimateTransitions:r,isDimmed:n,dimStyle:o,formattingLocale:a,panelRect:i})=>{const c=oe(),l=Rc(e.id),{colorScheme:d}=D(),h=N(e),g=c(e.geom,t.type);if(g===null)return null;const m=it(g.render);return m.overlay?null:(0,s.jsx)("g",{style:n?{opacity:o.opacity,...o.filter===void 0?{}:{filter:o.filter}}:void 0,children:m.fn({layer:e,coordSystem:t,shouldAnimateTransitions:r,formattingLocale:a,intro:l,panelRect:i,colorScheme:d,styleReaders:h})})};function Wg({renderer:e,layer:t,coordSystem:r,candidates:n}){if(e?.getOverlayAnchor===void 0||n.length===0)return[];const o=[];for(const{observation:a,observationIndex:i}of n){const c=e.getOverlayAnchor({layer:t,coordSystem:r,observation:a});c!==null&&o.push({observation:a,observationIndex:i,anchor:c})}return o}var Vg=4,Ug=({renderer:e,layer:t,matchedLayer:r,overlayCandidates:n,coordSystem:o,shouldAnimateTransitions:a,panelRect:i,formattingLocale:c})=>{const l=O(j=>j.config.numberFormat),d=(0,v.useMemo)(()=>Wg({renderer:e,layer:t,coordSystem:o,candidates:n}),[e,t,o,n]),{colorScheme:h}=D(),g=N(t),m=B(),f=(0,v.useMemo)(()=>(0,u.createSegmentYReader)(t),[t]),p=(0,v.useMemo)(()=>(0,u.createLayerYValueFormatter)({layer:t,numberFormat:l,locale:c}),[l,t,c]),{fonts:A}=ye(),x=R(ut,B());if(e===null||r===null&&d.length===0)return null;const S=it(e.render);let b=null;if(r&&!S.overlay){const j={layer:r,sourceLayer:t,coordSystem:o,shouldAnimateTransitions:a,formattingLocale:c,panelRect:i,colorScheme:h,styleReaders:g};b=e.renderHighlight?e.renderHighlight(j):S.fn(j)}return(0,s.jsxs)(ga,{children:[b,d.map(({observation:j,observationIndex:w,anchor:P})=>(0,s.jsx)(Kg,{observation:j,anchor:P,panelRect:i,fill:(0,u.readGeomColor)(m,t,j)??u.DEFAULT_GEOM_COLOR,dotRadius:(g.get("size",j)??u.DEFAULT_POINT_SIZE_PX)/2,readSegmentY:f,formatYValue:p,labelStyle:x.observation.outside,familyDefault:A.familyDefault},Yg(j,w)))]})},Kg=({observation:e,anchor:t,panelRect:r,fill:n,dotRadius:o,readSegmentY:a,formatYValue:i,labelStyle:c,familyDefault:l})=>{const d=ce(),h=(0,u.toViewBoxX)(t.x),g=(0,u.toViewBoxY)(t.y),m=a(e)??null,f=m!==null?i(m,e):null,p=(0,v.useMemo)(()=>{if(f===null)return null;const A=d.measureText(f,(0,u.toFontSpec)(c,l));return{width:A.width+c.paddingInline*2,height:A.height+c.paddingBlock*2}},[f,d,c,l]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{"data-testid":"highlight-overlay-dot",cx:(0,u.toPercent)(h),cy:(0,u.toPercent)(g),r:o,fill:n}),f!==null&&p!==null&&(0,s.jsx)(va,{x:h*r.width,y:g*r.height-o-Vg-p.height/2,width:p.width,height:p.height,text:f,isRotated:!1,labelRole:"observation",position:"outside",coordType:"cartesian"})]})},Yg=(e,t)=>{const r=e[u.GROUP_VARIABLES.group];return`${String(r??"")}\0${t}`},Qg=({layer:e,coordSystem:t,panelRect:r})=>{const{primary:n,group:o,related:a}=we((0,Y.useShallow)(g=>({primary:g.hover.primary,group:g.hover.group,related:g.hover.related}))),i=oe(),{colorScheme:c}=D(),l=N(e);if(!ue[Me()].hoverPaint||n===null)return null;const d=i(e.geom,t.type);if(d===null||Xn(d))return null;const h=a.get(e.id)??[];return n.layerId===e.id?d.renderHover({layer:e,coordSystem:t,primary:n,group:o,related:h,panelRect:r,colorScheme:c,styleReaders:l}):h.length===0?null:d.renderHoverCompanions({layer:e,primary:n,related:h,colorScheme:c,styleReaders:l})},zg=e=>{const t=N(e);return(0,v.useMemo)(()=>{const[r]=e.data;if(r===void 0)return{opacity:void 0,filter:void 0};const n=t.resolveState("dimmed",r);return{opacity:n.alpha,filter:nn((0,u.pickFilters)(n))}},[e,t])},Xg="var(--to1jkx0)",qg="var(--to1jkx1)",Jg="to1jkx2",Zg="to1jkx3",_g=({shouldAnimateTransitions:e,panelRect:t,formattingLocale:r})=>{const{layers:n,coordSystem:o}=O((0,Y.useShallow)(a=>({layers:a.layers,coordSystem:a.coordSystem})));return(0,s.jsx)("svg",{x:t.x,y:t.y,width:t.width,height:t.height,className:Jg,"data-testid":"geom-layers",...yd(),children:n.map(a=>(0,s.jsxs)(v.Fragment,{children:[(0,s.jsx)(tv,{layer:a,coordSystem:o,shouldAnimateTransitions:e,panelRect:t,formattingLocale:r}),(0,s.jsx)(Qg,{layer:a,coordSystem:o,panelRect:t})]},`${a.id}-${$g(o)}`))})},$g=e=>e.type==="cartesian"?`cartesian-${e.mainAxis}`:e.type,ev=e=>(0,Ot.assignInlineVars)({...e.opacity===void 0?{}:{[Xg]:String(e.opacity)},...e.filter===void 0?{}:{[qg]:e.filter}}),tv=({layer:e,coordSystem:t,shouldAnimateTransitions:r,panelRect:n,formattingLocale:o})=>{const a=oe(),i=(0,v.useMemo)(()=>a(e.geom,t.type),[a,e,t]),c=e.highlight,l=zg(e),{colorScheme:d}=D(),h={layer:e,coordSystem:t,shouldAnimateTransitions:r,formattingLocale:o,panelRect:n,colorScheme:d,styleReaders:N(e)},g=i?it(i.render):null,m=e.spatialKind==="render-hit-test",f=l.opacity!==void 0||l.filter!==void 0;return(0,s.jsxs)("g",{className:f?Zg:void 0,style:f?ev(l):void 0,children:[(0,s.jsx)(Dg,{layer:e,coordSystem:t,shouldAnimateTransitions:r,isDimmed:c?.composition.isDimmed??!1,dimStyle:l,formattingLocale:o,panelRect:n}),m&&!g?.overlay&&i?.hitTest&&(0,s.jsx)(Pl,{hitTest:i.hitTest,input:h}),m&&g?.overlay&&(0,s.jsx)(Ml,{render:g.fn,input:h}),c!==null&&(0,s.jsx)(Ug,{renderer:i,layer:e,matchedLayer:c.composition.matchedLayer,overlayCandidates:c.composition.overlayCandidates,coordSystem:t,shouldAnimateTransitions:r,panelRect:n,formattingLocale:o})]})},rv="_17uhij30",nv=({formattedAxes:e,plotRect:t,panelBorder:r,panelFrameRect:n,panelRect:o,axisRects:a,axisLabelRects:i,shouldAnimateTransitions:c,formattingLocale:l,plotBottomY:d,isFooterChromeReserved:h,isEditable:g,showAnnotations:m})=>{const f=(0,v.useRef)(null);bh(f);const p=re("Grid",ma),A=re("AxisTicks",Mg),x=re("AxisLabel",Bg),S=(0,v.useMemo)(()=>Tt(n,t),[n,t]),b=(0,v.useMemo)(()=>Tt(o,t),[o,t]),j=(0,v.useMemo)(()=>qr(a,t),[a,t]),w=(0,v.useMemo)(()=>qr(i,t),[i,t]);return(0,s.jsxs)("svg",{ref:f,className:rv,width:t.width,height:t.height,style:{transform:`translate(${t.x}px, ${t.y}px)`},"data-testid":"plot",children:[(0,s.jsx)(p,{axes:e,panelBorderSizes:r,panelFrameRect:S,panelRect:b}),(0,s.jsx)(A,{formattedAxes:e,tickRects:j}),(0,s.jsx)(x,{formattedAxes:e,labelRects:w}),(0,s.jsx)(Hg,{formattedAxes:e,panelRect:b}),(0,s.jsx)(ih,{panelRect:b}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ur,{panelRect:b,zOrder:"background"}),(0,s.jsx)(Vr,{panelRect:b,zOrder:"background"})]}),(0,s.jsx)(Ig,{sizes:r,panelFrameRect:S}),(0,s.jsx)(_g,{shouldAnimateTransitions:c,panelRect:b,formattingLocale:l}),(0,s.jsx)(Ng,{formattedAxes:e,panelRect:b}),(0,s.jsx)(gg,{panelRect:b,formattingLocale:l,plotBottomY:d,isFooterChromeReserved:h}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ih,{panelRect:b,isEditable:g}),(0,s.jsx)(Ur,{panelRect:b,zOrder:"foreground"}),(0,s.jsx)(Vr,{panelRect:b,zOrder:"foreground"}),(0,s.jsx)(Rh,{panelRect:b,isEditable:g}),(0,s.jsx)(Kh,{panelRect:b}),(0,s.jsx)(og,{panelRect:b}),(0,s.jsx)(Zh,{panelRect:b})]}),(0,s.jsx)(yh,{panelRect:b})]})},Tt=(e,t)=>({x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}),qr=(e,t)=>{const r={};for(const[n,o]of Object.entries(e))r[n]=Tt(o,t);return r},ov=e=>{let t,r;return"aspectRatio"in e?"intrinsicWidth"in e?(t=e.intrinsicWidth,r=t/e.aspectRatio):(r=e.intrinsicHeight,t=r*e.aspectRatio):(t=e.intrinsicWidth,r=e.intrinsicHeight),{width:Jr(t,"width"),height:Jr(r,"height")}},Jr=(e,t)=>{if(e<=0||Number.isNaN(e)||!Number.isFinite(e))throw new u.InternalError({message:`Expected ${t} to be a positive, finite number, but got ${e}.`});return e},av=({sizing:e,onResize:t,children:r})=>{const n=to({onResize:t}),o=(0,v.useRef)(!1);if((0,v.useEffect)(()=>{e.mode==="responsive"&&(n.isDefault||n.width>0&&n.height>0||o.current||(o.current=!0,console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)))},[e.mode,n.isDefault,n.width,n.height]),e.mode==="keepAspectRatio"){const{intrinsicSize:i,canRender:c,outerStyles:l,innerStyles:d}=sv(e,n.width,!n.isDefault);return(0,s.jsx)("div",{ref:n.setElement,style:l,"data-testid":"graph-sizer",children:c&&(0,s.jsx)("div",{style:d,children:r(i)})})}if(e.mode==="fixed")return(0,s.jsx)("div",{ref:n.setElement,style:{width:e.width,height:e.height},"data-testid":"graph-sizer",children:r({width:e.width,height:e.height})});const a=!n.isDefault&&n.width>0&&n.height>0;return(0,s.jsx)("div",{ref:n.setElement,style:{width:"100%",height:"100%"},"data-testid":"graph-sizer",children:a&&r({width:n.width,height:n.height})})},sv=(e,t,r)=>{const n=ov(e),o=t>0&&n.width>0?t/n.width:1;return{intrinsicSize:n,canRender:r,outerStyles:{width:"100%",...r?{height:n.height*o}:{aspectRatio:`${n.width} / ${n.height}`}},innerStyles:{transformOrigin:"top left",transform:`scale(${o})`,width:n.width,height:n.height}}},iv={mode:"responsive"},St={headerSize:{width:0,height:0},footerSize:{width:0,height:0}},lv=()=>{const[e,t]=(0,v.useState)(null),[r,n]=(0,v.useState)(null),[o,a]=(0,v.useState)(St);return(0,v.useEffect)(()=>{const i=()=>{const l=e?{width:e.offsetWidth,height:e.offsetHeight}:St.headerSize,d=r?{width:r.offsetWidth,height:r.offsetHeight}:St.footerSize;a(h=>cv(h,{headerSize:l,footerSize:d})?{headerSize:l,footerSize:d}:h)};i();const c=new ResizeObserver(i);return e&&c.observe(e),r&&c.observe(r),()=>c.disconnect()},[e,r]),{headerRef:t,footerRef:n,measurements:o}},cv=(e,t)=>e.headerSize.width!==t.headerSize.width||e.headerSize.height!==t.headerSize.height||e.footerSize.width!==t.footerSize.width||e.footerSize.height!==t.footerSize.height,uv=()=>null,dv=({graphChrome:e,isEditable:t,mode:r,style:n,contentRef:o,children:a})=>{const{themeClass:i,inlineVarsStyle:c}=ct(),l=e.strokeWidth,d=l>0?e.stroke:void 0,h=Math.max(0,e.cornerRadius),g=h===0?0:h+l,m=(0,v.useMemo)(()=>({...n,borderRadius:`${g}px`,...c,background:d}),[n,g,c,d]),f=(0,v.useMemo)(()=>({inset:`${l}px`,borderRadius:`${h}px`,...e.blendMode==="normal"?{}:{mixBlendMode:e.blendMode}}),[l,h,e.blendMode]),p=t&&e.fill==="transparent";return(0,s.jsx)("div",{"data-testid":"graph-wrapper",className:(0,W.default)(Jl,i),style:m,children:(0,s.jsx)("div",{ref:o,"data-testid":"graph-inner","data-graph-mode":r,tabIndex:t?0:void 0,className:(0,W.default)(_l,{[$l]:t,[ec]:p}),style:f,children:a})})},hv=e=>(0,s.jsx)(ao,{locale:jo(),children:(0,s.jsx)(xa,{...e})}),xa=({slots:e,sizing:t=iv,onResize:r,...n})=>(0,s.jsx)(Zn,{children:(0,s.jsx)(Bn,{children:(0,s.jsx)(Ri,{slots:e,children:(0,s.jsx)(av,{sizing:t,onResize:r,children:({width:o,height:a})=>(0,s.jsx)(gv,{width:o,height:a,...n})})})})}),gv=({width:e,height:t,animation:r,showTooltips:n=!0,mode:o=ne.readonly})=>{const a=Jt(),i=qt(o),{axes:c,legends:l,layers:d,numberFormat:h,parsingLocale:g,annotations:m,coordSystem:f,headline:p,headlineConfig:A,content:x,overflowStrategy:S}=O((0,Y.useShallow)(z=>({axes:z.guides.axes,legends:z.guides.legends.drawn,layers:z.layers,numberFormat:z.config.numberFormat,parsingLocale:z.config.parsingLocale,annotations:z.annotations,coordSystem:z.coordSystem,headline:z.guides.headline,headlineConfig:z.config.headline,content:z.config.content,overflowStrategy:z.config.panel.overflow}))),{intro:b,transitions:j}=Nl(r,d),{headerRef:w,footerRef:P,measurements:C}=lv(),{formattingLocale:M,colorScheme:k}=D(),T=ue[i],L=T.editorSurface,[$,U]=(0,v.useState)(null),ya=re("Header",Lo),Aa=re("Footer",Oo),ba=re("Legend",ah),Sa=re("Headline",vd),ja=re("EditorSurface",uv),ur=(0,v.useMemo)(()=>(0,u.formatLegends)({legends:l,numberFormat:h,parsingLocale:g,formattingLocale:M}),[l,h,g,M]),Te=(0,v.useMemo)(()=>(0,u.formatHeadline)({headline:p,show:A.show,numberFormat:h,parsingLocale:g,formattingLocale:M,t:a}),[p,A.show,h,g,M,a]),wa=ce(),ae=B(),dr=R(vv,ae),hr=R(u.resolvePanelBorderStyle,ae),gr=R(tr,ae),vr=R(fv,ae),Pa=R(mv,ae),ka=R(pv,ae),Ea=R(xv,ae),{fontFamily:vt,textScale:Ra,strokeWidth:ft,fill:Ca}=dr,fr=(0,v.useMemo)(()=>Pn(k,{},vt),[k,vt]),Ie=(0,v.useMemo)(()=>({width:Math.max(0,e-2*ft),height:Math.max(0,t-2*ft)}),[e,t,ft]),mr=(0,v.useMemo)(()=>To(x.brandMark.enabled,Ie,x.brandMark.variant),[x.brandMark.enabled,x.brandMark.variant,Ie]),Ma=x.brandMark.placement==="footer"?mr:"hidden",Ba=x.brandMark.placement==="header"?mr:"hidden",Ae=(0,v.useMemo)(()=>Te?{formatted:Te,size:A.size,position:A.position,innerRadius:f.type==="polar"?f.innerRadius:0}:void 0,[Te,A.size,A.position,f]),Ke=Yc({textMeasurer:wa,metrics:fr,overrides:Ci()}),pr=(0,v.useMemo)(()=>(0,u.computePanelBorderSizes)(hr),[hr]),Oe=Qc({measurer:Ke,axes:c,numberFormat:h,parsingLocale:g,formattedLegends:ur,containerSize:Ie,externalMeasurements:C,headline:Ae,formattingLocale:M,annotations:m,layers:d,coordSystem:f,overflowStrategy:S,panelBorder:pr,padding:R(u.resolveGraphPadding,ae),margins:R(u.resolveChromeMargins,ae)}),Ye=(0,v.useMemo)(()=>!Oe||!Ae||!Ke?null:(0,u.resolveHeadlinePlacement)({headline:Ae,layout:Oe.layout,containerSize:Ie,measurer:Ke,itemGap:gr.gap}),[Oe,Ae,Ke,Ie,gr.gap]);if(!Oe)return null;const{layout:Q,formattedAxes:xr,plotBottomY:Ta}=Oe,Ia=Q.footer.height>0;return(0,s.jsx)(Qo.Provider,{value:i,children:(0,s.jsx)(lo,{colorScheme:k,textScale:Ra,graphBackground:Ca,graphFontFamily:vt,headingFontFamily:vr.fontFamily,children:(0,s.jsx)(li,{metrics:fr,children:(0,s.jsx)(qc,{children:(0,s.jsx)(xu,{panelRect:Q.panel,children:(0,s.jsx)(dv,{graphChrome:dr,isEditable:L,mode:i,contentRef:L?U:void 0,style:{width:"100%",height:"100%"},children:(0,s.jsxs)(kc,{intro:b,children:[(0,s.jsx)(ya,{ref:w,headerRect:Q.header,mode:i,title:x.title,isTitleVisible:x.isTitleVisible,subtitle:x.subtitle,isSubtitleVisible:x.isSubtitleVisible,headingStyle:vr,subtitleStyle:Pa,brandMark:Ba}),(0,s.jsx)(nv,{formattedAxes:xr,plotRect:Q.plot,panelBorder:pr,panelFrameRect:Q.panelFrame,panelRect:Q.panel,axisRects:Q.axes,axisLabelRects:Q.axisLabels,shouldAnimateTransitions:j,formattingLocale:M??g,plotBottomY:Ta,isFooterChromeReserved:Ia,isEditable:L,showAnnotations:T.annotations}),(0,s.jsx)(Aa,{ref:P,footerRect:Q.footer,mode:i,caption:x.caption,isCaptionVisible:x.isCaptionVisible,source:x.source,isSourceVisible:x.isSourceVisible,captionStyle:ka,sourceStyle:Ea,brandMark:Ma}),(0,s.jsx)(ba,{formattedLegends:ur,rects:Q.legends}),Te&&Ye&&(0,s.jsx)(Sa,{headline:Te,rect:Ye.rect,resolvedSize:Ye.resolvedSize,visibleItemCount:Ye.visibleItemCount,isInDonutHole:Ae!==void 0&&(0,u.paintsInDonutHole)(Ae)}),L&&$!==null&&(0,s.jsx)(ja,{frameElement:$,panelRect:Q.panel,formattedAxes:xr,shouldAnimateTransitions:j}),n&&T.tooltips&&(0,s.jsx)(Ac,{})]})})})})})})})},vv=e=>e.graph().resolve(),fv=e=>e.heading.h1().resolve(),mv=e=>e.heading.h2().resolve(),pv=e=>e.caption().resolve(),xv=e=>({label:e.source().resolve(),link:e.source.link().resolve()}),yv=e=>{const t=(0,v.useContext)(Nt);return(0,v.useMemo)(()=>e||(t?{commands:t.commands,undo:t.history.undo,redo:t.history.redo,subscribe:t.store.subscribe,getScene:()=>t.store.getState().scene,getSelection:()=>t.selectionStore.getState().selection,setSelection:r=>t.selectionStore.getState().setSelection(r),subscribeSelection:t.selectionStore.subscribe}:null),[e,t])},Av=e=>(0,v.useSyncExternalStore)(e.subscribe,e.getScene,e.getScene),bv=()=>{const{commands:e}=D();return e},Sv=e=>{if(e.altKey||!e.metaKey&&!e.ctrlKey)return null;const t=e.key.toLowerCase();return t==="z"?e.shiftKey?"redo":"undo":t==="y"&&e.ctrlKey&&!e.shiftKey?"redo":null},jv=()=>{const{targetBoundaryStore:e}=D();return(0,xe.useStore)(e,t=>t.boundary)};Object.defineProperty(exports,"ArrowAnnotation",{enumerable:!0,get:function(){return sa}});Object.defineProperty(exports,"BUILT_IN_GEOM_RENDERERS",{enumerable:!0,get:function(){return zn}});Object.defineProperty(exports,"BrandMark",{enumerable:!0,get:function(){return or}});Object.defineProperty(exports,"CanvasTextMeasurer",{enumerable:!0,get:function(){return Rn}});Object.defineProperty(exports,"DEFAULT_FONT_FAMILY",{enumerable:!0,get:function(){return We}});Object.defineProperty(exports,"DEFAULT_SPRING_TRANSITION",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"DefaultFooter",{enumerable:!0,get:function(){return Oo}});Object.defineProperty(exports,"DefaultGrid",{enumerable:!0,get:function(){return ma}});Object.defineProperty(exports,"DefaultHeader",{enumerable:!0,get:function(){return Lo}});Object.defineProperty(exports,"DefaultSwatch",{enumerable:!0,get:function(){return On}});Object.defineProperty(exports,"DefaultTooltip",{enumerable:!0,get:function(){return fo}});Object.defineProperty(exports,"EDIT_TARGET_AXIS_ATTRIBUTE",{enumerable:!0,get:function(){return Ge}});Object.defineProperty(exports,"EDIT_TARGET_KIND_ATTRIBUTE",{enumerable:!0,get:function(){return ve}});Object.defineProperty(exports,"EditorProvider",{enumerable:!0,get:function(){return mu}});Object.defineProperty(exports,"GRAPH_MODES",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"GeomRendererResolverProvider",{enumerable:!0,get:function(){return vi}});Object.defineProperty(exports,"GraphContext",{enumerable:!0,get:function(){return Nt}});Object.defineProperty(exports,"GraphRenderer",{enumerable:!0,get:function(){return hv}});Object.defineProperty(exports,"GraphRendererBody",{enumerable:!0,get:function(){return xa}});Object.defineProperty(exports,"HoverProvider",{enumerable:!0,get:function(){return Zn}});Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return sr}});Object.defineProperty(exports,"ImageAnnotation",{enumerable:!0,get:function(){return la}});Object.defineProperty(exports,"InlineEditorsProvider",{enumerable:!0,get:function(){return Nu}});Object.defineProperty(exports,"IntlProvider",{enumerable:!0,get:function(){return ao}});Object.defineProperty(exports,"LEGEND_OVERFLOW_CONTROL_SELECTOR",{enumerable:!0,get:function(){return fd}});Object.defineProperty(exports,"MODE_SURFACES",{enumerable:!0,get:function(){return ue}});Object.defineProperty(exports,"MinusIcon",{enumerable:!0,get:function(){return Fo}});Object.defineProperty(exports,"OverlayPortal",{enumerable:!0,get:function(){return $n}});Object.defineProperty(exports,"PortalThemeProvider",{enumerable:!0,get:function(){return co}});Object.defineProperty(exports,"RICH_TEXT_FONT_FAMILIES",{enumerable:!0,get:function(){return uo}});Object.defineProperty(exports,"STICKER_ASSETS",{enumerable:!0,get:function(){return ha}});Object.defineProperty(exports,"ShapeAnnotation",{enumerable:!0,get:function(){return ca}});Object.defineProperty(exports,"TextAnnotation",{enumerable:!0,get:function(){return Hh}});Object.defineProperty(exports,"TextMeasurerProvider",{enumerable:!0,get:function(){return Bn}});Object.defineProperty(exports,"ThemeProvider",{enumerable:!0,get:function(){return lo}});Object.defineProperty(exports,"Z_INDEX",{enumerable:!0,get:function(){return je}});Object.defineProperty(exports,"__toESM",{enumerable:!0,get:function(){return It}});Object.defineProperty(exports,"assignTextStyleVars",{enumerable:!0,get:function(){return Gi}});Object.defineProperty(exports,"buildDotsPath",{enumerable:!0,get:function(){return qa}});Object.defineProperty(exports,"buildRoundedRectPath",{enumerable:!0,get:function(){return ie}});Object.defineProperty(exports,"canMoveAnnotationOnCanvas",{enumerable:!0,get:function(){return oa}});Object.defineProperty(exports,"createGeomRendererResolver",{enumerable:!0,get:function(){return qn}});Object.defineProperty(exports,"createTargetBoundaryStore",{enumerable:!0,get:function(){return Al}});Object.defineProperty(exports,"darkTheme",{enumerable:!0,get:function(){return so}});Object.defineProperty(exports,"darkenCss",{enumerable:!0,get:function(){return yn}});Object.defineProperty(exports,"defineGeomRenderer",{enumerable:!0,get:function(){return yl}});Object.defineProperty(exports,"dictionaries",{enumerable:!0,get:function(){return lt}});Object.defineProperty(exports,"editor",{enumerable:!0,get:function(){return Fh}});Object.defineProperty(exports,"growRect",{enumerable:!0,get:function(){return Pt}});Object.defineProperty(exports,"isHex",{enumerable:!0,get:function(){return Xs}});Object.defineProperty(exports,"isOverlayHosted",{enumerable:!0,get:function(){return Xn}});Object.defineProperty(exports,"isValidCssColor",{enumerable:!0,get:function(){return qs}});Object.defineProperty(exports,"lightTheme",{enumerable:!0,get:function(){return Zt}});Object.defineProperty(exports,"lightenCss",{enumerable:!0,get:function(){return zs}});Object.defineProperty(exports,"logDiagnostics",{enumerable:!0,get:function(){return _r}});Object.defineProperty(exports,"measureArrowEnds",{enumerable:!0,get:function(){return ea}});Object.defineProperty(exports,"measureShapeRegion",{enumerable:!0,get:function(){return $o}});Object.defineProperty(exports,"measureTextAnnotationBox",{enumerable:!0,get:function(){return ta}});Object.defineProperty(exports,"previewResizedText",{enumerable:!0,get:function(){return da}});Object.defineProperty(exports,"readAnnotationUnderPointer",{enumerable:!0,get:function(){return rr}});Object.defineProperty(exports,"readCrosshairLine",{enumerable:!0,get:function(){return _o}});Object.defineProperty(exports,"readDraggedArrowEndpointFor",{enumerable:!0,get:function(){return ru}});Object.defineProperty(exports,"readDraggedDifferenceArrowEndpointFor",{enumerable:!0,get:function(){return ou}});Object.defineProperty(exports,"readGridLineStyle",{enumerable:!0,get:function(){return He}});Object.defineProperty(exports,"readLegendItemAddress",{enumerable:!0,get:function(){return Vo}});Object.defineProperty(exports,"readMovedAnnotationFor",{enumerable:!0,get:function(){return eu}});Object.defineProperty(exports,"readResizedShapeFor",{enumerable:!0,get:function(){return su}});Object.defineProperty(exports,"readResizedTextFor",{enumerable:!0,get:function(){return lu}});Object.defineProperty(exports,"readRichTextFontId",{enumerable:!0,get:function(){return ho}});Object.defineProperty(exports,"readStampedEditTargetInStack",{enumerable:!0,get:function(){return xd}});Object.defineProperty(exports,"readStanding",{enumerable:!0,get:function(){return Pe}});Object.defineProperty(exports,"resolveAnnotationChromeGeometry",{enumerable:!0,get:function(){return hh}});Object.defineProperty(exports,"resolveBrandMarkVisual",{enumerable:!0,get:function(){return To}});Object.defineProperty(exports,"resolveEditTargetAtPoint",{enumerable:!0,get:function(){return du}});Object.defineProperty(exports,"resolveHistoryStep",{enumerable:!0,get:function(){return Sv}});Object.defineProperty(exports,"resolvePortalContainer",{enumerable:!0,get:function(){return Xt}});Object.defineProperty(exports,"resolveRichTextFontFamily",{enumerable:!0,get:function(){return Ct}});Object.defineProperty(exports,"stampAxisEditTarget",{enumerable:!0,get:function(){return dt}});Object.defineProperty(exports,"stampGridEditTarget",{enumerable:!0,get:function(){return ir}});Object.defineProperty(exports,"stampLegendEditTarget",{enumerable:!0,get:function(){return ht}});Object.defineProperty(exports,"toHtmlTextCss",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"useDebouncedCallback",{enumerable:!0,get:function(){return eo}});Object.defineProperty(exports,"useDifferenceArrowGeometries",{enumerable:!0,get:function(){return Bo}});Object.defineProperty(exports,"useEditorState",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"useEditorStore",{enumerable:!0,get:function(){return pu}});Object.defineProperty(exports,"useElementScreenRect",{enumerable:!0,get:function(){return ro}});Object.defineProperty(exports,"useGeomHitTest",{enumerable:!0,get:function(){return _n}});Object.defineProperty(exports,"useGeomHover",{enumerable:!0,get:function(){return no}});Object.defineProperty(exports,"useGeomReaderTree",{enumerable:!0,get:function(){return Ee}});Object.defineProperty(exports,"useGeomRendererResolver",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"useGraphCommands",{enumerable:!0,get:function(){return bv}});Object.defineProperty(exports,"useGraphContext",{enumerable:!0,get:function(){return D}});Object.defineProperty(exports,"useGraphHandle",{enumerable:!0,get:function(){return yv}});Object.defineProperty(exports,"useGraphLocale",{enumerable:!0,get:function(){return jo}});Object.defineProperty(exports,"useGraphMode",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"useGraphSelection",{enumerable:!0,get:function(){return ia}});Object.defineProperty(exports,"useGuidesTakePress",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"useHandleScene",{enumerable:!0,get:function(){return Av}});Object.defineProperty(exports,"useHoverContext",{enumerable:!0,get:function(){return ge}});Object.defineProperty(exports,"useHoverState",{enumerable:!0,get:function(){return we}});Object.defineProperty(exports,"useI18n",{enumerable:!0,get:function(){return Jt}});Object.defineProperty(exports,"useLatestRef",{enumerable:!0,get:function(){return et}});Object.defineProperty(exports,"useMeasuredBoxRef",{enumerable:!0,get:function(){return Ro}});Object.defineProperty(exports,"useMeasuredBoxes",{enumerable:!0,get:function(){return Eo}});Object.defineProperty(exports,"useResolvedAnnotations",{enumerable:!0,get:function(){return Be}});Object.defineProperty(exports,"useResolvedStyle",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"useSceneSelector",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"useStyleReaderTree",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"useStyleReaders",{enumerable:!0,get:function(){return N}});Object.defineProperty(exports,"useStyleResolver",{enumerable:!0,get:function(){return Ft}});Object.defineProperty(exports,"useSvgPathMorph",{enumerable:!0,get:function(){return Ze}});Object.defineProperty(exports,"useTargetBoundary",{enumerable:!0,get:function(){return jv}});Object.defineProperty(exports,"useTextMeasurer",{enumerable:!0,get:function(){return ce}});Object.defineProperty(exports,"useThemeContext",{enumerable:!0,get:function(){return ct}});